ssh connection timeout

bjf <[email protected]>
Newsgroups gmane.comp.java.sshtools.user
Message-ID <[email protected]>
Sorry this is so long.  I am just trying to be complete.  Also, I have
been trying to solve this problem for over a month unsuccessfully.  This
is the first post I am attempting after my amateur research and nabble seems
like an appropriate place to post.

i have two comps running windows xp pro (home comp) and windows xp home 
(laptop).

They are both running cygwin and have openssh installed and running.  I 
take the laptop to work and home.  when my laptop is at work and 
connected to the lan, I can ssh into my home comp and vice versa--no
problem.  
However, if i connect the laptop to an unsecured wireless connection, I 
get a connection timeout from my home computer, but I can still login 
from my laptop to the home comp.  That sounds a little confusing...I 
have uploaded an image to diagram the previous paragraph.
http://www.nabble.com/file/67/ssh.bmp 

I am pretty much at a loss.  Because the connection works when the 
laptop is hard-wired, but it fails when on a wireless connection (I have
tried
different wireless connections).  I am running ZA firewall on both computers
and the they both have ssh and sshd allowed.  In fact, if I turn ZA off and
the windows firewall off, I get the same problem.

I am starting to wonder if connecting on an unsecrured wireless 
connection is unsafe and ssh somehow knows this, but I have been trying to 
solve this problem for about a month now and I haven't seen any 
documentation on ssh failing when connected to an unsecured wireless
connection.

One last thing.  In an attempt to solve this problem myself, I 
reinstalled the openssh package from the cygwin setup on my laptop.  Since 
then, I have been getting a cygrunsrv error.  So, the only way I can start 
the dameon is by manually calling "/usr/sbin/sshd."  When I do so, this 
is the error message I get:

#start#
home$ cygrunsrv -S sshd
cygrunsrv:  Error starting a service:  QueryServiceStatus:  win32 error 
1062:
The service has not been started.
#end#

Then I run

#start#
home$ /usr/sbin/sshd
#end#

and it starts.  But, I don't think this is causing the problem, because
I had connection problems long before I got this cygrunsrv error.  in fact,
it
still works when I take it to work.  One more thing, I just thought of:  I
just
checked the event viewer and sshd shows 2 strange errors when i call it
manually.  I don't get these errors when at work (they could be a result of
a 
weak wireless connection I had yesterday).

#START ERROR REPORT#
Event Type:	Error
Event Source:	sshd
Event Category:	None
Event ID:	0
Date:		9/19/2006
Time:		1:52:56 PM
User:		compname\usrname
Computer:	compname
Description:
The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. 
The local computer may not have the necessary registry information or 
message DLL files to display messages from a remote computer. You may be 
able to use the /AUXSOURCE= flag to retrieve this description; see Help 
and Support for details. The following information is part of the 
event: sshd: PID 3540: error: Bind to port 22 on 0.0.0.0 failed: Address 
already in use..
#END ERROR REPORT#

2nd error report:

#START ERROR REPORT#
Event Type:	Error
Event Source:	sshd
Event Category:	None
Event ID:	0
Date:		9/19/2006
Time:		1:52:56 PM
User:		compname\usrname
Computer:	usrname
Description:
The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. 
The local computer may not have the necessary registry information or 
message DLL files to display messages from a remote computer. You may be 
able to use the /AUXSOURCE= flag to retrieve this description; see Help 
and Support for details. The following information is part of the 
event: sshd: PID 3540: fatal: Cannot bind any address..
#END ERROR REPORT#

This might be causing the problem, but I am not sure what it means.  I am
able
to connect to the internet with any browser.  This error might just be a
fluke
due to a bad connection yesterday.

Here is trying to login to my laptop from my home comp in debug mode while
the laptop is on a wireless connection:

#START#
home$ ssh -vvv Bernard@<ip address>
OpenSSH_4.3p2, OpenSSL 0.9.8a 11 Oct 2005
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to <ip address> [<ip address>] port 22.
debug2: fd 3 setting O_NONBLOCK
debug1: connect to address <ip address> port 22: Connection timed out
ssh: connect to host  <ip address> port 22: Connection timed out
#END#

i don't always get the line "debug2: fd 3 setting O_NONBLOCK"

Thanks for any response one might have
-Bernard
-- 
View this message in context: http://www.nabble.com/ssh-connection-timeout-tf2306754.html#a6412249
Sent from the SSHtools - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.