ssh setting up port 22 conection refused
Hello, I have been searching and tweaking for an hour with not much luck. Sorry I don't know enough about neworking to make progress.
I am on a gentoo laptop 2.6.16, OpenSSH_4.2p1, OpenSSL 0.9.7j 04 May 2006. I am trying to allow ssh from the local netwok onto my computer, this is my network settings (as I understand it), with xs in place of number clearly. Code:
$ more /etc/conf.d/net Code:
ssh: connect to host 192.xxx.x.x port 22: Connection refused I have allowed rsa authetification as I understand. I have tried uncomenting the line Port 22 but it made no difference. Do I have to restart something? This is my sshd config file. Code:
# $OpenBSD: sshd_config,v 1.72 2005/07/25 11:59:40 markus Exp $ |
2 things - daemon & firewall
post the output of `iptables -L -v -n` is the sshd daemon running on the laptop? at the very least check this with `nmap -sS -O -p- -PI -PT localhost` (substitute the laptop ip for localhost if done from another box) (ok so this is scanning every port not just 22 but what the heck) HTH |
Sorry for the late reply was away from internet conection for a while and then very bussy.
O.K lets begin. 2 things - daemon & firewall post the output of `iptables -L -v -n` # iptables -L -v -n bash: iptables: command not found So i clearly do not have the firewall installed (I only conect to the inernet from this nework which is behind it's own firewall). is the sshd daemon running on the laptop? at the very least check this with `nmap -sS -O -p- -PI -PT localhost` nmap isnot installed either so I emerged nmap. After emerging nmap I get # nmap -sS -O -p- -PI -PT localhost Starting Nmap 4.01 ( http://www.insecure.org/nmap/ ) at 2007-02-22 10:42 GMT Warning: OS detection will be MUCH less reliable because we did not find at least 1 open and 1 closed TCP port All 65535 scanned ports on localhost (127.0.0.1) are: closed Too many fingerprints match this host to give specific OS details Nmap finished: 1 IP address (1 host up) scanned in 6.926 seconds So I guess that means I need to open port 22. So I guess my next question would be how do I open this port? Many Thanks Tommy |
"opening the port" is essentially starting the program/daemon associated with that port. I don't know the init style in gentoo so here are the two styles
slackware (bsd-like) Code:
/etc/rc.d/sshd start centos (redhat = sys5) Code:
/etc/init.d/sshd start |
All times are GMT -5. The time now is 12:36 AM. |