FTP from command line question


#1

Setting up an FTP account was confusing to me on DH. On my current web host, I use anonymous FTP directory for collaborators to drop off or pickup data sets that might be too big to send as a email attachment. I was hoping in lieu of needing a “Strictly Business” account to get an anonymous FTP, I could enable FTP with a distinct user id and password in a “Sweet Dreams”. My account summary told me had only used one. But it took me a long time to figure out how to enable an FTP on the panel. I kept looking through every tab in “Home” and “Billing” and “Domains”. Finally I found a helpful forums discussion of FTP, and realized that the DH approach is that they’re users with limited permissions, and they’re set up under the “Users” tab.

OK, I have a FTP user set up and have been able to set it up as a “Network Place” on an XP PC. But I can’t figure out why my Solaris box can’t get the account and password right. I am using the -n option of FTP so it will ignore my .netrc file and not log me in as my main DH account. But this is what I see:

pahto% ftp -n kiki.dreamhost.com
Connected to kiki.dreamhost.com.
220 ProFTPD 1.2.5rc1 Server (DreamHost FTP) [kiki.dreamhost.com]
ftp> account ykfpftp
502 ACCT command not implemented.
ftp>

Am I missing something on my FTP or is it DH’s kiki’s FTP?


#2

You should be prompted for a username / password.

bacall% ftp kiki
Connected to kiki.dreamhost.com.
220 ProFTPD 1.2.5rc1 Server (DreamHost FTP) [kiki.dreamhost.com]
Name (kiki:william): [username]
331 Password required for william.
Password:


#3

I got it. It’s been awhile since I didn’t have an automatic login. It’s not the account command, the first one I came to in the man pages, it’s user:

pahto% ftp -n kiki.dreamhost.com
Connected to kiki.dreamhost.com.
220 ProFTPD 1.2.5rc1 Server (DreamHost FTP) [kiki.dreamhost.com]
ftp> user ykfpftp2 xxxxxxx
331 Password required for ykfpftp2.
230 User ykfpftp2 logged in.
ftp> ls -lt
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
drwxr-x–x 4 17554 pg106956 4096 Oct 14 11:20 .
drwxr-x–x 4 17554 pg106956 4096 Oct 14 11:20 …
drwx–S— 5 17554 pg106956 4096 Oct 14 11:20 Maildir
drwxr-sr-x 2 0 root 4096 Oct 14 11:20 logs
-rw-r–r-- 1 17554 pg106956 81 Nov 20 2002 .bash_profile
-rw-r–r-- 1 17554 pg106956 417 Nov 8 2000 .cshrc
-rw-r–r-- 1 17554 pg106956 260 Nov 27 1999 .alias
-rw-r–r-- 1 17554 pg106956 55 Nov 27 1999 .bashrc
226-Transfer complete.
226 Quotas off