命令如下:
sudo vim /etc/ssh/sshd_config
在第22行 有個 #Port 22
把這個'#'
去掉,然後再添一行 Port 端口號
,之後,:wq
後,
輸入命令
service sshd restart
重啓過ssh服務之後,就生效了
命令如下:
sudo vim /etc/ssh/sshd_config
在第22行 有個 #Port 22
把這個'#'
去掉,然後再添一行 Port 端口號
,之後,:wq
後,
輸入命令
service sshd restart
重啓過ssh服務之後,就生效了