Question

SFTP on CentOS 7 w/Webmin

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?

Show comments

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 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.