Session persistence
Add the following Control* parameters to your OpenSSH client configuration file:
Host devbox
Hostname x.x.x.x
[...]
ServerAliveInterval 3600
ControlPersist 1h
ControlMaster auto
ControlPath ~/.ssh/control/%C
and create the directory for control sockets with secured permissions:
mkdir -m 0700 ~/.ssh/controlNote: %C is used to avoid path too long for Unix domain socket errors and is a hash of %l%h%p%r%j.