2022年8月25日 星期四

SSH keep alive

某些情境防火牆有設定 session timeout,導致 SSH 在 idle 情況下無法長時間連線
所以就需要 SSH keep alive 設定,定期送個封包讓連線不致於 timeout
它可以設在 Client 端或 Server 端
Server 端在 /etc/ssh/sshd_config 設定 ClientAliveInterval
Client 端在 /etc/ssh/ssh_config 設定 ServerAliveInterval
單位是秒,這個值只要低於觀察到會斷線的時間即可

沒有留言:

Mount SSHFS in Windows

https://github.com/winfsp/winfsp https://github.com/winfsp/sshfs-win 要先安裝這兩個工具 一般用帳密掛載,預設是掛載使用者的 home 目錄 net use Z: \\sshfs\username@host 使用...