Modify the Linux host ssh remote default port number

As we all know, the Linux host ssh remote default port number is 22, no problem

Now the need is to modify the default port number to strengthen the remote security of the host

Just the following command, get it
vim /etc/ssh/sshd_config

Insert picture description here
Just modify it here

Port 1234
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

After modification,:wq Save

Then restart the sshd service

systemctl restart sshd.service

Then test the connection

over

More exciting, stay tuned!

Note:
(It’s been a bit busy these days, but I have to insist on outputting)

Guess you like

Origin blog.csdn.net/frdevolcqzyxynjds/article/details/110428384