summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bd544b8)
i.e. when an attempt to run "true" command fails.
sshgw() {
local socket="$HOME/.ssh/cangw-connection"
sshgw() {
local socket="$HOME/.ssh/cangw-connection"
- if [[ ! -S $socket ]]; then
+ if [[ ! -S $socket ]] || ! ssh -x -a -S $socket root@192.168.2.3 true; then
# Create master connection to speed up subsequenct command.
# The ssh is put into background and the connection is closed
# after 10 minutes)
# Create master connection to speed up subsequenct command.
# The ssh is put into background and the connection is closed
# after 10 minutes)