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

It occured to me that ssh may not be running in the Mandriva box. I'm so use to Gentoo and I have ssh set to run as default. I have no idea how to check it in Mandriva since the usual command doesn't work.

Link to comment
Share on other sites

And you can enable with:

 

chkconfig sshd on

 

or start manually with:

 

service sshd start

 

If it's not there, install with:

 

urpmi ssh-server

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...