大家好
在script中撰寫 ssh -o StrictHostKeyChecking=no $remoteip "$command"
或scp -o StrictHostKeyChecking=no $file $remoteip:/tmp/
本機已有remote 的public key
如果server 無回應或連不到要自動跳開
有試過 -o TCPKeepAlive=no -o ServerAliveInterval=5 還是不行
連不到還是會一直停在那
請問ssh有什麼方法可在幾秒內連不到server 就跳開 繼續往下作
謝謝