Page 1 of 1

How to restore Default Port SSH?

PostPosted:01 Apr 2019 18:44
by edogawa
How to restore Default Port SSH?

Re: How to restore Default Port SSH?

PostPosted:01 Apr 2019 21:46
by nguyenoanh
Hello.

You can change SSH port to default by edit /etc/ssh/sshd_config
Code: Select all
nano /etc/ssh/sshd_config
Find the line
Code: Select all
Port XXX
with XXX is the new port

Change it to:
Code: Select all
#Port XXX
Then save it and restart SSH service
Code: Select all
service sshd restart

Re: How to restore Default Port SSH?

PostPosted:22 Apr 2020 08:38
by joecow
Thanks