Cannot Access SFTP Server in Ubuntu 12.04

  • Posted on July 7, 2013
  • matthewAsked by matthew

I have recently installed the Ubuntu 12.04 LAMP stack but have not been able to connect to my SFTP server remotely.

I created a new user (per the Ubuntu setup guide) and disabled remote login with root. When I try to access the SFTP server (via Filezilla on Mac) with my new user account, I get the following response:

Response: fzSftp started Command: open “user@###.###.###.###” 22 Error: Connection refused Error: Could not connect to server

When I try to login locally, sftp user@###.###.###.###, I get the following:

ssh: connect to ###.###.###.### port 22: Connection refused Couldn’t read packet: Connection reset by peer

I have been scouring the message boards for days and have had no luck in finding a solution. Could anyone please help?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I am having a similar problem.
<br> <br>My output of the iptables command is in this screen shot: <br> <br> <br>I cannot access via SSH or SFTP on an app install of Wordpress Ubuntu 12.10 <br> <br>

@paediatech: What’s the output of this command? <br> <br><pre>iptables -L -n -v</pre>

I have the same problem. <br> <br>I cannot access my sftp through either fireftp or filezilla. (the error I get here is Unable to make a connection. Please try again.) <br> <br>I cannot even access it through putty (Putty say: Network error, connection timed out) <br> <br>This has been like this for some times now (Though i noticed this after installing GDATA Internet Security, but I have uninstalled it without success as well. <br> <br>I am using a Internet Connection from my mobile phone hotspot with DHCP. <br> <br>Please help me