在服務器中/etc/ssh/ssh_config
和/etc/ssh/sshd_config
末尾加上以下代碼
TCPKeepAlive yes
ClientAliveInterval 5
ClientAliveCountMax 3
重啓ssh服務後即可正常.
systemctl reload sshd
或
systemctl restart sshd
這樣,就再也不會出現動不動就掉線了.
在服務器中/etc/ssh/ssh_config
和/etc/ssh/sshd_config
末尾加上以下代碼
TCPKeepAlive yes
ClientAliveInterval 5
ClientAliveCountMax 3
重啓ssh服務後即可正常.
systemctl reload sshd
或
systemctl restart sshd
這樣,就再也不會出現動不動就掉線了.
代碼: public class PropertiesControl : Grid { [TypeConverter(typeof(LengthConverter))] public d