Jump to content

ssh problem [solved]


mystified
 Share

Recommended Posts

I have a fairly new router, a Netgear which is very similar to my old router. I have port forwarding set at port 22 for ssh and I can ssh into the board server but I can't ssh into my other linux box.

 

Here's the error:

mystified@localhost ~ $ ssh 192.168.1.2
ssh: connect to host 192.168.1.2 port 22: Connection refused

 

Any suggestions?

Link to comment
Share on other sites

Check that the service on the machine you are trying to connect to is running. Do a:

 

netstat -tan

 

on the machine to see if port 22 is listening. Check /etc/hosts.deny and see if it has an:

 

ALL: ALL: DENY

 

if so this could be why as well. And check if firewall is on this machine, iptables or shorewall or something that might be blocking the port from listening.

 

Normally you only need to enable on the router if you're trying to connect when not at home, say from work, or some other location.

 

All I can think of right now.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...