Computing.Net > Forums > Networking > can't connect to ssh server

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

can't connect to ssh server

Reply to Message Icon

Name: ab77
Date: February 17, 2009 at 19:26:32 Pacific
OS: Microsoft Windows XP Professional SP3, all updates
CPU/Ram: 1.989 GHz / 894 MB
Product: Compaq / El426aa-aba sr1710nx na610
Subcategory: General
Comment:

i'm trying to set up an SSH server with tcp tunneling on my home computer, and connect to it from other computers on the internet. every time i try to connect (using putty as the client), i get a "connection refused" error.
i've tried using openssh and freesshd as the servers with the same results. i have the windows firewall set up to open the port i'm using. i've tried 12264, 22, and 443. i also have my westell 327w router set up to forward those ports, and set up with NAT to forward all unsolicited traffic to the server. no matter what settings i change, it never works.
i've tried port scanning my computer a few times, and sometimes it will show the ports as being open, and other times it will show them as being closed. if i run putty on the computer with the ssh server, using the local ip address (192.168.1.46), it connects fine and tunnels without a problem.
i'm thinking that something is blocking the ssh server from accepting remote connections, but i can't figure it out. the server is using the windows xp firewall, and is connected to the internet via wifi on a westell 327w router connected in bridge mode to a motorola surfboard SB5120 connected to comcast cable.



Sponsored Link
Ads by Google

Response Number 1
Name: guapo
Date: February 18, 2009 at 07:40:59 Pacific
Reply:

Are you using your external IP address from the remote client?


0

Response Number 2
Name: ab77
Date: February 18, 2009 at 11:00:18 Pacific
Reply:

yes. i'm using my external IP address, which i verified via my router and a few IP address pages (such as ip-adress.com)


0

Response Number 3
Name: guapo
Date: February 18, 2009 at 12:20:58 Pacific
Reply:

Where are you when you are attempting a remote connection, a friend's house?


0

Response Number 4
Name: ab77
Date: February 18, 2009 at 12:53:11 Pacific
Reply:

i've tried a friend's house, school, and my house, all just say connection refused.


0

Response Number 5
Name: guapo
Date: February 18, 2009 at 13:14:28 Pacific
Reply:

Connect the machine running SSH directly to the modem, go to a friends house and try it.


0

Related Posts

See More



Response Number 6
Name: ab77
Date: February 18, 2009 at 18:41:36 Pacific
Reply:

i can't try that. the computer running the server is too far away from the modem to connect to it without using my wifi router. now that i think about it, i had this same problem a long time ago while trying to set up a VNC server for fun. i eventually just gave up on it. do you think it would help to borrow and try a different wifi router?


0

Response Number 7
Name: guapo
Date: February 18, 2009 at 19:01:06 Pacific
Reply:

How far is the modem from the machine?


0

Response Number 8
Name: ab77
Date: February 18, 2009 at 19:38:34 Pacific
Reply:

in terms of running a cable, it would be somewhere around 100 feet. in terms of wifi signals, about 20 feet. the computer is on the second floor of my house, on the opposite side of the house from the stairs (the only way to run a cable). and the modem is also on the side of the house opposite from the stairs. i could buy a really long ethernet cable, but running a cable all through my house wouldn't go too well with my family.


0

Response Number 9
Name: guapo
Date: February 18, 2009 at 19:45:22 Pacific
Reply:

Run it down the stairs for an hour, just as a test. If it works, drop it out the window and run it around the house. Tuck it along the trim. No one will ever see it. I just did it for a customer who's signal was weak.


0

Response Number 10
Name: ab77
Date: February 20, 2009 at 19:18:45 Pacific
Reply:

i talked to my mom (who owns the modem and router) and she won't allow me to try to connect my computer directly to it, so i'm just going to give up on using ssh and try to write a program and set up a proxy server that routes the data through email programs. thank you for your help.


0

Response Number 11
Name: guapo
Date: February 21, 2009 at 05:54:41 Pacific
Reply:

Try it when she isn't home.


0

Response Number 12
Name: Curt R
Date: February 21, 2009 at 05:58:40 Pacific
Reply:

Ok to start with the biggest question I have is, what are you using for an ssh server?

I have my OpenBSD box setup as my main firewall/router which is running behind my SOHO router. All traffic passes through the SOHO first, then the UNIX box. I had to port foreward port 22 (ssh) to the internal IP address of my UNIX box. I have no problems connecting so I have to suspect you've messed up your port forward or the ssh server software is not configured correctly.

The fact that you're getting "connection refused" leads me to think the problem is your ssh server.


0

Response Number 13
Name: guapo
Date: February 21, 2009 at 06:01:47 Pacific
Reply:

He said it connected fine on the LAN.


0

Response Number 14
Name: Curt R
Date: February 21, 2009 at 06:10:03 Pacific
Reply:

I must have missed that while reading through this string.

Then it can only be he's misconfigured the port forward.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: can't connect to ssh server

Can't connect to facebook on public wireless www.computing.net/answers/networking/cant-connect-to-facebook-on-public-wireless-/37976.html

Can't connect to network share www.computing.net/answers/networking/cant-connect-to-network-share/18162.html

can't connect to the Net via router www.computing.net/answers/networking/cant-connect-to-the-net-via-router/12098.html