SSH 是制定于应用层基础上的安全网络协议,是加密的信息传输系统。
netsh advfirewall firewall add rule name=sshd dir=in action=allow protocol=TCP localport=22
Start-Service sshd
Stop-Service sshd
ssh Administrator@119.45.35.232 -o 2222
在本地 sshd_config 文件(在 /etc/ssh/ 下):
ClientAliveInterval 60 // 闲置 60s 后自动连接
ClientAliveCountMax 5 // 尝试 5 次