ssh connection timed out...
Hello, i stumbled on a little problem today...
in few words I have 2 RH5 machines, i need to connect from one machine to another using ssh..everything is fine until i try to do it :D When i am tryting to ssh user@host, i get after about minute connection timed out. The RSA key auterized keys are configured. entried in host file are added. When i try to ping the host to which i am trying to connect everything seems to be fine. so i am trying to telnet ip port, says trying ip, then times out. OK i tracetour -n ip, and that is the place where i stack. the out put is traceroute -n 10.254.50.10 traceroute to 10.254.50.10 (10.254.50.10), 30 hops max, 40 byte packets 1 10.254.49.65 1.080 ms 0.999 ms 0.998 ms 2 10.255.145.122 1.279 ms 1.271 ms 1.248 ms 3 * * * 4 * * * 5 * * * 6 * * * 7 * * * 8 * * * 9 * * * 10 * * * 11 * * * 12 * * * 13 * * * 14 * * * 15 * * * 16 * * * 17 * * * 18 * * * 19 * * * 20 * * * 21 * * * 22 * * * 23 * * * 24 * * * 25 * * * 26 * * * 27 * * * 28 * * * 29 * * * 30 * * * i actually dont know how it should look like, maybe some one could help. but still i cant connect. |
Hello,
is sshd running on the destination machine? is it listening on the port where you try to connect? (default 22) is firewall enabled? if yes is it allows connection? |
Okey, i checked and sshd is running, but how can i see if it listening, and if he is listening then what ports??
and i know that firewall is not enabled, because there is no need of it, its internal servers ;) thx in advance! |
to see on which interface(s) and on port the sshd listening
netstat -tpln | grep ssh |
Hi,
Quote:
Code:
service sshd status Quote:
Code:
netstat -plan | grep sshd Quote:
Hope this helps. |
Okey its runing and listneing the posrt 22, but i may have spoken to realy about firewall, because i did not turn it off and i just assumed why would it be set up if its iternal server, but i probably should check if firewall is up, right? so question is how? and how can i check if firewall is blocking incoming connection?
|
/etc/init.d/iptables status
will show you if it is running or not |
the outpoot is like
Quote:
Quote:
|
Hi,
what is the output of the following commands (as root user): Code:
# ssh with verbose output: |
is there any network device between the 2 systems which could block access? (router, etc)
also you mentioned you can ping the system is there any other service(open port), where you are able to connect? for eg httpd(tcp 80) if it is allowed you can use port scanner tool like "nmap" to check it |
so the out poot of first command is
Quote:
Quote:
|
Quote:
did not quite understood that about other services, sorry! |
Hi,
Which host did you run the service iptables status command? On both servers I hope..... What is the output of the following command (as root, from the server you ssh from): Code:
nmap tlnpamt01.gi.telenor.com |
yeah on both servers
and output of that command is Quote:
because i tried to another servers and it showed me There is interesting ports 22/tcp open ssh! |
Quote:
you should contact them about other services, i just wanted to see if other ports can be seen open or all of them filtered most likely it is firewall issue somewhere as ping(icmp) worked for you, that means network connection is possible (of course if you pinged the right ip ^^) how many interfaces the systems has? ifconfig - will show you the active interfaces route -n - will show you the routing table used by the system you should then know which interface and then which gateway is used who is responsible/can access that gateway? so if you are only responsible for the 2 hosts you will need network admin assistance i believe |
All times are GMT -5. The time now is 07:45 PM. |