How can I reconnect to a ssh session after a broken pipe?

Posted by Chauncellor on Ask Ubuntu See other posts from Ask Ubuntu or by Chauncellor
Published on 2012-09-22T03:49:49Z Indexed on 2012/09/27 21:51 UTC
Read the original article Hit count: 155

Filed under:
|

So I was running apt-get upgrade on a server when the router decided it had been too long since it last made me angry: It dropped all connection. Moral of the story is to use screen a lot when you're on a bum router.

Anyway, I logged back in and found in htop that the process was still hanging there, still waiting for my Y/n to upgrade (hadn't hit it yet, luckily). Is there any way I can reattach to a session that had been broken off? I ended up just killing it since it wasn't in the middle of package management but it would be great to know for future reference.

© Ask Ubuntu or respective owner

Related posts about ssh

Related posts about openssh