This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

SSH exited with error status 255 AutoSSH


Noob Question.

I am sorry for starting off with a Noob Question, but I have been
  racking my brain for days.  I am using cygwin to setup what I hope
  will be several revserSSH tunnels to other linux environmnets.  right
  now I am testing and when I setup the auotssh the tunnel will fail
  realivlty quickly.  I have set the AUTOSSH_DEBUG to yes but I am not
making heads or tails of the error

My main issue is that I keep getting ssh exited with error status 255;
  restarting ssh

I have been using http://linux.die.net/man/1/autossh for most of my
  info and I have been searching the internet to try and piece together
  what I am missing.  Sicne you can see I am using cygwin, I am a
  windows admin and do not have much experince with linux.

Here is my script...

 TESTS=$1
echo $TESTS
NUM=1
LPORT_BASE=8050
MONITOR_BASE=20050
#NUM=$(echo $NUM | tr -d '\r')
#LPORT_BASE=$(echo $LPORT_BASE | tr -d '\r')
#MONITOR_BASE=$(echo $MONITOR_BASE | tr -d '\r' )
MONITOR=`expr $MONITOR_BASE + $NUM`
LPORT=`expr $LPORT_BASE + $NUM`
function do_ssh()
{
export AUTOSSH_POLL=100
export AUTOSSH_GATETIME=0
export AUTOSSH_DEBUG=Yes
autossh -M $MONITOR -vv -f -i ~/.ssh/jklein_dsa -N -T -R
$LPORT:localhost:80 cyg_server@192.168.200.86
MONITOR=`expr $MONITOR + $NUM`
LPORT=`expr $LPORT_BASE + $NUM`
}
#for i in {1..$TESTS}
for i in {1..1}
do
do_ssh
sleep 0.1
done

Here is the log file

Nov 12 10:51:18 wtfs1772 syslog-ng[2252]: Log statistics;
processed='center(received)=0',
processed='src.internal(s_local#1)=438',
stamp='src.internal(s_local#1)=1352738478',
processed='center(queued)=0',
processed='global(payload_reallocs)=437',
processed='global(sdata_updates)=0',
processed='destination(d_local)=1910',
processed='global(msg_clones)=0', processed='source(s_local)=1910'
Nov 12 10:53:16 wtfs1772 autossh: PID 3104: checking for grace period, tries = 0
Nov 12 10:53:16 wtfs1772 autossh: PID 3104: starting ssh (count 1)
Nov 12 10:53:16 wtfs1772 autossh: PID 3104: ssh child pid is 4112
Nov 12 10:53:16 wtfs1772 autossh: PID 3104: check on child 4112
Nov 12 10:53:16 wtfs1772 autossh: PID 3104: set alarm for 600 secs
Nov 12 10:53:16 wtfs1772 autossh: PID 4112: execing /usr/bin/ssh
Nov 12 10:53:37 wtfs1772 autossh: PID 3104: check on child 4112
Nov 12 10:53:37 wtfs1772 autossh: PID 3104: ssh exited with error
status 255; restarting ssh <---------------------My Errror
Nov 12 10:53:37 wtfs1772 autossh: PID 3104: expired child, returning 1
Nov 12 10:53:37 wtfs1772 autossh: PID 3104: checking for grace period, tries = 0
Nov 12 10:53:37 wtfs1772 autossh: PID 3104: starting ssh (count 2)
Nov 12 10:53:37 wtfs1772 autossh: PID 3104: ssh child pid is 3524
Nov 12 10:53:37 wtfs1772 autossh: PID 3104: check on child 3524
Nov 12 10:53:37 wtfs1772 autossh: PID 3104: set alarm for 579 secs
Nov 12 10:53:37 wtfs1772 autossh: PID 3524: execing /usr/bin/ssh
Nov 12 10:53:58 wtfs1772 autossh: PID 3104: check on child 3524
Nov 12 10:53:58 wtfs1772 autossh: PID 3104: ssh exited with error
status 255; restarting ssh <------------------------It keeps looping
from here on out

Many many thanks to anyone who can help.

Also any recomendations on a good free place to start with learning
linux with a training format for a windows admin would also be
apreciated.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]