I'm using ssh Control Master setup to connect to remote machines and using ControlPersist 16h
and ControlPath ~/.ssh/master-%C
options. It seems to work fine. But when my Mac goes to sleep, it deletes the sockets created above. Then I'm forced to enter password again on login to this remote machine. Any suggestion, how one can get around this problem?
SSH Control master setup
543 views Asked by Tissot11 At
1
Considerind a
ControlPersist
directive would not persist your computer sleeping, you would need another alternative in order to get what you want.Namely, Mosh (mobile shell) (also on GitHub):
It does persists connections when your computer sleeps.