How to change ssh port on debian8.1?

Posted July 13, 2015 3.9k views

In my debian8.1, i have set Port 23444 in /etc/ssh/sshconfig and restart sshd.
Why can still login with : ssh root@vps
ip ? The Port doesn’t matter?

1 comment

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.

Submit an Answer
1 answer

You can check this old tutorial to find out more, it still works. Link

by Etel Sverdlov
This tutorial covers how to login with root, how to change the root password, how to create a new user, how to give the new user root privileges, how to change the port, and how to disable root login in. This tutorial is written for Ubuntu. When you first create your server, this tutorial explains the first steps you need to take. This tutorial is written for Ubuntu 12.04.