dpkg -l | grep openssh-server
sudo apt update
sudo apt install openssh-server
sudo systemctl status ssh
sudo systemctl start ssh
sudo systemctl restart ssh
sudo vim /etc/ssh/ssh_config
ServerAliveInterval 50 #每隔50秒就向服务器发送一个请求,这个数字可以根据自身需要调整
ServerAliveCountMax 3 #允许超时的次数,一般都会响应