Changeset 1270


Ignore:
Timestamp:
Sep 16, 2009, 11:17:13 AM (9 years ago)
Author:
Daniel Kahn Gillmor
Message:

added -w 1 timeout to nc for ssh passthru script (thanks, Matt Goins!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ssh-utils/global-ssh-passthru

    r1221 r1270  
    3232#    exec /usr/bin/ssh "$DOMAIN" socat "TCP4:$HOST:22" STDIO
    3333## netcat might be a bit more common:
    34     exec /usr/bin/ssh "$DOMAIN" "if ( which nc >/dev/null 2>/dev/null) ; then exec nc '$HOST' 22; else exec socat 'TCP4:$HOST:22' STDIO; fi"
     34    exec /usr/bin/ssh "$DOMAIN" "if ( which nc >/dev/null 2>/dev/null) ; then exec nc -w 1 '$HOST' 22; else exec socat 'TCP4:$HOST:22' STDIO; fi"
    3535fi
Note: See TracChangeset for help on using the changeset viewer.