In my work I'm often in situation where I want to restart remote server, and then immediately connect to it over ssh. This can be done by repeating ssh HOST in shell, but it gets tedious. I can also write a simple loop, like: while true do ssh HOST true &> /dev/null && break echo … Continue reading "Reconnecting to SSH servers"
↧