hodka
By:
hodka

SFTP on CentOS 7 w/Webmin

December 17, 2015 1.9k views
Linux Basics Security CentOS

So far I have managed to install CentOS 7 and Webmin. I have followed this guide in attempt to replace my FTP with SFTP... https://www.digitalocean.com/community/tutorials/how-to-configure-proftpd-to-use-sftp-instead-of-ftp

For now FTP is still running and working, yet SFTP isn't. I am getting the following error...
Status: Connecting to 000.000.000.000:2222...
Response: fzSftp started, protocol_version=4
Command: keyfile "C:\Users\Public\Documents\Server Keys\Private.ppk"
Command: open "sftpuser@000.000.000.000" 2222
Error: Network error: Connection refused

I have added my ip address into the iptables and I am allowed to connect to any port so I don't believe this is the problem.

I have however changed the SSH port by default from 22 to port 121, will have have any effect?

1 comment
  • I'm not sure exactly what is going on, but I will say that SFTP is enabled by default through SSH and port 22. You would want to point any SFTP connection to the port that SSH is running on.

    Happy coding,

    Jon Schwenn
    Platform Support Specialist
    DigitalOcean

1 Answer

I have however changed the SSH port by default from 22 to port 121, will have have any effect?

SFTP uses SSH to connect to your server. If you've changed the default SSH port, make sure to change that in your FTP client as well.

Have another answer? Share your knowledge.