Networking Forums

Networking Forums > Computer Networking > Linux Networking > SSH connection time out

Reply
Thread Tools Display Modes

SSH connection time out

 
 
farseer
Guest
Posts: n/a

 
      05-12-2005, 06:17 AM
Hi,
I have cygwin installed on my XP box with sshd service running.

"ssh user@localhost" works fine for me.
However, "ssh user@198.168.0.102" does not. in the latter's case the
ip is my machine's IP (the same one that i run ssh user@localhost on).

The error is: "ssh: connect to host 198.168.0.102 port 22: Connection
timed out"

Now i have done the following:
-ensured my firewall is allowing port 22 traffic
-added port forwarding for port 22 in my router.

anyone have any idea why localhost would work, but using the machine's
ip? I'm assuming if the machine IP does not work, then the WAN (remote
ssh) won't work either...which is my ultimate goal..as i would like to
offer users remove access to my local CVS repository

thanks much.

 
Reply With Quote
 
 
 
 
Michael Heiming
Guest
Posts: n/a

 
      05-12-2005, 10:13 AM
In comp.os.linux.networking farseer <(E-Mail Removed)>:
> Hi,
> I have cygwin installed on my XP box with sshd service running.

^^^^^^ ^^
Unsure what this has to do with *comp.os.linux.networking*?
Perhaps you'd better try css (comp.security.ssh).

Good luck

[..]

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 206: Police are examining all internet packets
in the search for a narco-net-trafficker
 
Reply With Quote
 
Bill Marcum
Guest
Posts: n/a

 
      05-12-2005, 03:41 PM
On 11 May 2005 23:17:48 -0700, farseer
<(E-Mail Removed)> wrote:
> Hi,
> I have cygwin installed on my XP box with sshd service running.
>
> "ssh user@localhost" works fine for me.
> However, "ssh user@198.168.0.102" does not. in the latter's case the
> ip is my machine's IP (the same one that i run ssh user@localhost on).
>
> The error is: "ssh: connect to host 198.168.0.102 port 22: Connection
> timed out"
>
> Now i have done the following:
> -ensured my firewall is allowing port 22 traffic
> -added port forwarding for port 22 in my router.
>
> anyone have any idea why localhost would work, but using the machine's
> ip? I'm assuming if the machine IP does not work, then the WAN (remote
> ssh) won't work either...which is my ultimate goal..as i would like to
> offer users remove access to my local CVS repository
>

Assuming that there is some similarity between Linux and Cygwin, you
might need to set the ListenAddress in /etc/ssh/sshd_config.



--
Test-tube babies shouldn't throw stones.
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      05-12-2005, 06:18 PM
In comp.os.linux.networking Bill Marcum <(E-Mail Removed)>:
> On 11 May 2005 23:17:48 -0700, farseer
> <(E-Mail Removed)> wrote:
>> Hi,
>> I have cygwin installed on my XP box with sshd service running.
>>
>> "ssh user@localhost" works fine for me.
>> However, "ssh user@198.168.0.102" does not. in the latter's case the
>> ip is my machine's IP (the same one that i run ssh user@localhost on).
>>
>> The error is: "ssh: connect to host 198.168.0.102 port 22: Connection
>> timed out"
>>
>> Now i have done the following:
>> -ensured my firewall is allowing port 22 traffic
>> -added port forwarding for port 22 in my router.
>>
>> anyone have any idea why localhost would work, but using the machine's
>> ip? I'm assuming if the machine IP does not work, then the WAN (remote
>> ssh) won't work either...which is my ultimate goal..as i would like to
>> offer users remove access to my local CVS repository
>>

> Assuming that there is some similarity between Linux and Cygwin, you
> might need to set the ListenAddress in /etc/ssh/sshd_config.


Shouldn't be the problem, defaults IIRC to 22, perhaps his ISP is
blocking port 22? We don't know and don't really care about
someone's problem running doze which is not categorical but in
this case completely OT here.

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 225: It's those computer people in X {city
of world}. They keep stuffing things up.
 
Reply With Quote
 
farseer
Guest
Posts: n/a

 
      05-13-2005, 05:08 AM
thanks michael for your help. keep the good fight up brother, we must
kill the evil Bill! yeah.

Bill, thanks for you help...i was able to solve the problem and it was
indeed related to sshd.
i needed to start the sshd server/daemon that is a part of the OpenSSH
package.

FYI..cygwin is similar to Linux...they both have their orgins from the
same source. O fcourse, unlike Michael Heiming, not all of us are
privied to be able to dictate the environment we need to work on in the
corporate world. So for those of us that must work on an XP or other
Windows box, cygwin is nice, real nice if we like the linux/unix
environment.

 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      05-13-2005, 07:17 AM
In comp.os.linux.networking farseer <(E-Mail Removed)>:
> thanks michael for your help. keep the good fight up brother, we must
> kill the evil Bill! yeah.


> Bill, thanks for you help...i was able to solve the problem and it was
> indeed related to sshd.
> i needed to start the sshd server/daemon that is a part of the OpenSSH
> package.


Great that you could get things working, even if it remains
mysterious how you could 'ssh localhost' successfully without even
starting sshd?

> FYI..cygwin is similar to Linux...they both have their orgins from the
> same source. O fcourse, unlike Michael Heiming, not all of us are
> privied to be able to dictate the environment we need to work on in the
> corporate world. So for those of us that must work on an XP or other


It's likely you'll never will, if you settle for cygwin. It's
some kind of *nix emulation working on doze.

> Windows box, cygwin is nice, real nice if we like the linux/unix
> environment.


Anyway the question is still OT in this group or following your
logic you could happily post to any *nix group.

BTW
Please keep some context while replying, thx.

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 104: backup tape overwritten with copy of system
manager's favourite CD
 
Reply With Quote
 
Ohmster
Guest
Posts: n/a

 
      05-13-2005, 11:24 AM
"farseer" <(E-Mail Removed)> wrote in news:1115960898.733542.129920
@g47g2000cwa.googlegroups.com:

> thanks michael for your help. keep the good fight up brother, we must
> kill the evil Bill! yeah.


LOL!

--
~Ohmster
ohmster at newsguy dot com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Only seems to allow one wireless connection at a time Andrew_JMData Wireless Networks 5 02-23-2009 06:37 PM
What is max. time of connection loss for VPN? Zeng Network Routers 0 11-14-2005 10:21 PM
Whats the longest connection time? Lo Salt Broadband 13 10-07-2004 06:37 PM
[Q]how may socket connection can established per server at the same time. ÀÌ»ó¼ö Windows Networking 0 09-09-2004 01:02 AM
Network Connection fails after some time AlGates Windows Networking 0 07-29-2003 07:45 PM



1 2 3 4 5 6 7 8 9 10 11