Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sshd not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
iplayfast
l33t
l33t


Joined: 08 Jul 2002
Posts: 642
Location: Cambridge On,CA

PostPosted: Thu Apr 25, 2013 7:14 pm    Post subject: sshd not working Reply with quote

I just re-installed openssh and updated the config file to the default.
Using a wireless laptop for connection.

ssh myself@localhost
works
ssh myself@192.168.1.130
works
ssh otherself@192.168.1.130
works

Code:

ssh from windows computer running cygwin
times out,


ssh at windows computer works to other isp, just not my laptop.

Any ideas why?
Back to top
View user's profile Send private message
greanie
n00b
n00b


Joined: 13 Nov 2007
Posts: 32

PostPosted: Fri Apr 26, 2013 3:03 pm    Post subject: Reply with quote

Can you ping the server from the client?
Back to top
View user's profile Send private message
iplayfast
l33t
l33t


Joined: 08 Jul 2002
Posts: 642
Location: Cambridge On,CA

PostPosted: Fri Apr 26, 2013 4:37 pm    Post subject: Reply with quote

Yes, I can ping.

I'm starting to suspect firewall, as the firewall on my in house system is legs wide open, whereas the firewall on the laptop is shut tight.
Back to top
View user's profile Send private message
greanie
n00b
n00b


Joined: 13 Nov 2007
Posts: 32

PostPosted: Fri Apr 26, 2013 7:26 pm    Post subject: Reply with quote

Starting with the basics but is sshd running?

#ps -ef | grep sshd

If you are using iptables, it is easy to stop and see if that makes a difference.

#/etc/init.d/iptables stop

Otherwise, if you can't stop the firewall, you can see if the port is open by using nmap from another machine:

# nmap -sT IP.2.SSH.SERVER

and you should get something like this

PORT STATE SERVICE
22/tcp open ssh

if it is open.

Or from the ssh server, you can do

#lsof -i -P

I believe and it will tell you what services are listening to what ports.
Back to top
View user's profile Send private message
iplayfast
l33t
l33t


Joined: 08 Jul 2002
Posts: 642
Location: Cambridge On,CA

PostPosted: Fri Apr 26, 2013 8:03 pm    Post subject: Reply with quote

Yes sshd is running

/etc/init.d/iptables stop
made no change

I didn't understand the syntax you gave for the nmap, but
Code:
nmap -sT 192.168.1.130

Starting Nmap 6.25 ( http://nmap.org ) at 2013-04-26 15:53 EDT
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
Nmap done: 1 IP address (0 hosts up) scanned in 3.05 seconds


lsof -i -P has results from sshd listening at port 22
Back to top
View user's profile Send private message
greanie
n00b
n00b


Joined: 13 Nov 2007
Posts: 32

PostPosted: Mon Apr 29, 2013 1:01 pm    Post subject: Reply with quote

Ok, so sshd is running and listening to port 22. However, nmap can't get to that ip address but in a previous post, ping worked.

- Did you run the alternate command suggested by nmap? nmap -Pn 192.168.1.130
- I know in a previous post you also said you sshd locally using your IP address but are you sure of that IP address? Post output of ifconfig?
- Was iptables running and you stopped it or did issuing the stop command to the Gentoo iptables script have no effect?

Given that nmap (you issued it from another computer attached to the network, right?) couldn't get to 192.168.1.130 and that ssh seems to be ready and listening to port 22, I would also suspect a firewall. Are you running any other firewall application other than iptables? ps -ef will list all running applications.

Running out of ideas...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum