Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to download a file from a Linux server via FTP from Windows command line. I've successfully downloaded the file with FileZilla (same server, same file), but I want to do it in cmd.exe.

I've tried two things:

$ ftp  
ftp> cd /home  
Not connected.  

$ ftp  
ftp> open  
ftp> cd /home  
Not connected.  

Why am I not prompted to enter user creds?

== EDIT ==
I tried to specify the port

$ ftp
ftp> open 22
Connected to
<Waits for a minute or so>
Connection closed by remote host.

After it says I'm connected it just waits a minute and then closes the connection. I have succeeded with FileZilla so it should be possible, right?

share|improve this question
The server is either using a different port for ftp or you have the wrong address. –  Jason H May 23 '13 at 14:20
ftp is port 21, not 22. –  Flup May 23 '13 at 14:48
I can connect with FileZilla on port 22. Not on port 21 - it says Connection refused. But when I connect on port 22 with FileZilla it uses SFTP. –  JonatanEkstedt May 23 '13 at 14:55

1 Answer 1

try using ftp command: user your_ftp_user then password after enter(i use it that way with script file, password in new line), or user your_ftp_user thats_user_password but I haven't tried password in same line as user.

and to connect to specific port you might have to use ftp command open address port as you did, it won't work directly using ftp address:port - didn't work for me.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.