Changeset 7436 for 2.0


Ignore:
Timestamp:
Jan 27, 2010, 8:17:42 PM (15 years ago)
Author:
richardvm
Message:

Fixed ssh command, so it wil login while /usr/sbin/nologin is specified (thanks to Rick)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2.0/nanobsd/nanobsd/files/usr/local/sshtun/sshtun.sh

    r7413 r7436  
    3131       
    3232          # Connect to remote site
    33           ssh -R ${REMOTEPORT}:localhost:${LOCALPORT} -i ${SSHKEY} ${USER}@${HOST} -o  StrictHostKeyChecking=no -o ServerAliveInterval=5 -o ExitOnForwardFailure=yes "sh -c 'sleep ${REMOTEWAIT}'"
    34        
     33          ssh -R ${REMOTEPORT}:localhost:${LOCALPORT} -i ${SSHKEY} ${USER}@${HOST} -o ServerAliveInterval=5 -o ExitOnForwardFailure=yes  -o BatchMode=yes  -o StrictHostKeyChecking=no -n -N "sh -c 'sleep ${REMOTEWAIT}'
    3534          # Echo some stuff
    3635          date
Note: See TracChangeset for help on using the changeset viewer.