Report this

What is the reason for this report?

Cannot Access SFTP Server in Ubuntu 12.04

Posted on July 7, 2013

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?



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!

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.

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

Matthew, I’m really glad to hear you are able to SSH in again. :]

Are you able to SSH in? Did you modify /etc/ssh/sshd_config (other than editing the PermitRootLogin directive)?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.