vi /etc/ssh/sshd_config
Prot 端口号
service sshd restart | systemctl restart sshd.service
ssh IP -p 端口
或
netstat -nulpt |grep sshd
或
lsof -i :端口号
修改SSH端口
最新推荐文章于 2024-05-08 20:57:54 发布
vi /etc/ssh/sshd_config
Prot 端口号
service sshd restart | systemctl restart sshd.service
ssh IP -p 端口
或
netstat -nulpt |grep sshd
或
lsof -i :端口号