天天看点

SSHD服务指定端口号

需要修改/etc/ssh/sshd_config,注意不是ssh_config,sshd指服务端守护程序(deamon),ssh是指客户端。

如图:

SSHD服务指定端口号

重启SSHD服务生效。

service sshd restart