LoginSignup
0

More than 5 years have passed since last update.

How to Change SSH Port 22 in the Ubuntu Server 16.04 LTS ?

Posted at

1.

$ sudo vim /etc/ssh/sshd_config
...
...
...
Port 22 <--- Change here. Ex: Port 9487
...
...
...
:wq!

2.

$ sudo systemctl restart ssh

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0