| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=4.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE |
| X-Spam-Check-By: | sourceware.org |
| X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=SnFcP88N8aHJJkxnyJTQwWQko3kixj/BPsfDoJnxZIc=; b=IPnqPp0sJEekGqRvm8yNwTQscSlJiske6tNI9rJBAZHSTA68pGbDbvm+Iv4Co5Qqhw kpqeduI0hBFY/GTylBW5Dnx+JAhbvypUbTwv3gEWDqdJGUgulrYwiFfoWS1+UFwXMMrr cupPVGMTKcJLXUk5rE/PAfeyYQPCY85cHB5Jq5jqbbovhlSDhajmTCGDrmzBr/pbxWx9 yhoGLKb46jlya7oP0YmvlxOA/FE5eVUCk3imH2CRY1UkiUPVW/3qL4TVBpteyIcS8pYg UOW0Bh8qJkg30TJvGmZnJqZnzpoeNEOI++oTPfMzAXNJel7iRfDpdHN0lMu+y5zw0okf 9bIA== |
| MIME-Version: | 1.0 |
| Date: | Mon, 12 Nov 2012 11:04:38 -0600 |
| Message-ID: | <CAENYCY79Ser5dctfLxCtPvh3wrdQuhZzMzUhk7R8qtB+63KvhQ@mail.gmail.com> |
| Subject: | SSH exited with error status 255 AutoSSH |
| From: | Tony DiSalvo <tony AT gammapartners DOT com> |
| To: | cygwin AT cygwin DOT com |
| X-Gm-Message-State: | ALoCoQlircapLHpB9c5VmWjjQ0856bqDcNUZrjy31apVgwG59x+TcltgDs+MG9UpF4C0m36+hjqs |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
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 AT 192 DOT 168 DOT 200 DOT 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |