Skip to main content
Welcome guest. | Register | Login | Post

Putty... Network error : Connection refused

13 replies [Last post]
kanenas.net's picture
Offline
Joined: 2006-03-27

Here is my problem...

I am using Putty (v.0.53 now) for a long time and didn't had any problem until lately, when I tried to access my server from work !
The only thing I did, was to make the same settings as I was home.
Except this...

Home IP : 192.168..... bla bla
Work IP : 212.23..... bla bla

Of course I have forward ports from the router to the server .
Port : 22 (I have also tried ports : 5900 , 22122)

So, when I am inside my network at home everything works fine !
When I am at work I get this error...

Network error : Connection refused

I did some search and I found this...

This error means that the network connection PuTTY tried to make to your server was rejected by the server. Usually this happens because the server does not provide the service which PuTTY is trying to access.
Check that you are connecting with the correct protocol (SSH, Telnet or Rlogin), and check that the port number is correct. If that fails, consult the administrator of your server.

The last part was the most funny of all (... I am the administrator of the server !).

Frown

What the f*** is going on ?

Yell

Any suggestions ?

Thanks !!!

dylunio's picture
Offline
Joined: 2005-12-20
You don't have anything like

You don't have anything like a router blocking the port to the outside world? or the port not being forwarded to the server?

dylunio

tbuitenh's picture
Offline
Joined: 2005-12-21
Eh, you're not trying to

Eh, you're not trying to connect to 192.168.x.y, are you? At work a different computer would have that IP, since 192.168 means local network.

kanenas.net's picture
Offline
Joined: 2006-03-27
Sorry ! What I ment with...

Sorry !
What I ment with...
Home IP was what you called internal, private address !
I am not trying to connect to this IP address.
I am trying to connect to this IP address...

212.23..... bla bla

from my work !!!

kanenas.net's picture
Offline
Joined: 2006-03-27
Forward ports...

dylunio wrote:

You don't have anything like a router blocking the port to the outside world? or the port not being forwarded to the server? dylunio

Of course I have forward ports from the router to the server .
Port : 22 (I have also tried ports : 5900 , 22122)

a thing's picture
Offline
Joined: 2005-12-20
sshd /etc/hosts.allow

Is your work IP address in /etc/hosts.allow (on your server) for sshd?

a thing's picture
Offline
Joined: 2005-12-20
Did it work?

So did that last reply help?

kanenas.net's picture
Offline
Joined: 2006-03-27
Sorry for the delay ! I

Sorry for the delay !
I haven't tried it yet...
:-(
But I will do it first thing in the morning !

kanenas.net's picture
Offline
Joined: 2006-03-27
Network Error: Connection timed out
a thing wrote:

So did that last reply help?

No good :-(
Network Error: Connection timed out

If I try a few times, I get a...
Network Error: Network is unreachable
What the f*** ?

a thing's picture
Offline
Joined: 2005-12-20
guesses

1. Can you ping home from work?
2. Ionno if this is even possible, but is iptables somehow only allowing connections on port 22 from 192.168.*.*?

kanenas.net's picture
Offline
Joined: 2006-03-27
ping & iptables
a thing wrote:

1. Can you ping home from work?

I haven't thought of that so... I haven't tried that yet !
:-(

a thing wrote:

2. Ionno if this is even possible, but is iptables somehow only allowing connections on port 22 from 192.168.*.*?

iptables is allowing connections on port 22, but the question is, does SSH connections must be only on port 22 ???

dylunio's picture
Offline
Joined: 2005-12-20
/etc/ssh/sshd_config
kanenas.net wrote:

but the question is, does SSH connections must be only on port 22 ???

The port which ssh uses is set in /etc/ssh/sshd_config the default is port 22.

dylunio

kanenas.net's picture
Offline
Joined: 2006-03-27
ping home from work
a thing wrote:

1. Can you ping home from work?

No! I can't ping home from work !!!

a thing's picture
Offline
Joined: 2005-12-20
workplace's firewall

Perhaps your workplace's firewall is blocking outgoing connections to your home.

Comment viewing options