Question
How can I change SFTP port on Ubuntu 14.04?
Hello! How can I change default sftp port(e.g. 22->2202)
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.
×
You can change the port by editing the configuration file located at
/etc/ssh/sshd_config
Just change the parameter por from:
To whatever you like, for example:
If you are using any firewall (like acf) make sure you also update the parameters specific to the firewall to make sure you don’t get locked out your server.