Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: ssh: connect to host xxxxx port 22: Connection timed out

  1. #1
    Join Date
    Mar 2013
    Beans
    6

    ssh: connect to host xxxxx port 22: Connection timed out

    hi group
    im try to connect to uni server with ssh but give time out error.im give this cammand:
    ssh user@ip
    ssh: connect to host 192.168.29.59 port 22: Connection timed out
    Last edited by yaslinush; September 22nd, 2013 at 01:25 PM.

  2. #2
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: ssh: connect to host xxxxx port 22: Connection timed out

    There are several possible causes. One is that you are pointing to the wrong server, maybe the address is different to the outside or there is a gateway. Another could be that there is a firewall misconfigured to block incomming ssh connections. A third possibility is that the ssh server is listening on another port than the standard port. A fourth is that the ssh server wasn't started on that machine.

    Have you been able to connect to that server before via SSH on a different network?

  3. #3
    Join Date
    Mar 2013
    Beans
    6

    Re: ssh: connect to host xxxxx port 22: Connection timed out

    im connect to server with this ip and ssh cammand .firewall mis configured?

  4. #4
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: ssh: connect to host xxxxx port 22: Connection timed out

    The address you give is for a private subnet, 192.168.0.0/24 If you are outside that subnet, say at home while the machine is at school, then you cannot connect without using a gateway or a jump host or a (ugh) a VPN.

  5. #5
    Join Date
    Sep 2013
    Beans
    1

    Re: ssh: connect to host xxxxx port 22: Connection timed out

    When i'm having connection issues I tend to go through a basic sanity check:

    1) Can I ping the IP address of the machine that I'm trying to access?
    Code:
    pint HOSTNAME
    2) Can I telnet to the port of the machine that I want to connect to? If yes, then the issue doesn't appear to be on the client side. Try connecting with the service. If I can cool, otherwise
    Code:
    telnet HOSTNAME PORT
    3) Check/Ask someone to check the server. On the server check if anything is listening on the port the client is attempting to connect
    Code:
    ps -aux | grep "PORT_NUMBER"
    If nothing is listening on that port the service probably isn't running try restarting it. In your case:
    Code:
    service sshd restart
    Retry connecting, then if i'm still unsuccessful then I start digging into firewall issues or something else.

  6. #6
    Join Date
    Mar 2013
    Beans
    6

    Re: ssh: connect to host xxxxx port 22: Connection timed out

    the server is located in the University., And I was connected to the server of the University.and now im connected to uni internal network.but ssh doesn't work for connect to server

  7. #7
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: ssh: connect to host xxxxx port 22: Connection timed out

    Right. But you are probably on a different network now than you were before. In order to connect to a machine on a private subnet you generally have to either be on the same subnet or else use a jump host. Have you moved to a different building or different facility?

    What network are you on now?

    Code:
    ifconfig eth0

  8. #8
    Join Date
    Mar 2013
    Beans
    6

    Re: ssh: connect to host xxxxx port 22: Connection timed out

    im connect to net with home adsl and create vpn with uni gateway.
    eth0 Link encap:Ethernet HWaddr 64:31:50:12:8f:82
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

  9. #9
    Join Date
    Mar 2013
    Beans
    6

    Re: ssh: connect to host xxxxx port 22: Connection timed out

    ppp0 Link encapoint-to-Point Protocol
    inet addr:172.20.160.150 P-t-P:10.10.10.5 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1
    RX packets:6409 errors:0 dropped:0 overruns:0 frame:0
    TX packets:7888 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:3789157 (3.7 MB) TX bytes:1414691 (1.4 MB)

  10. #10
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    you can't get there from here

    Quote Originally Posted by yaslinush View Post
    inet addr:172.20.160.150 P-t-P:10.10.10.5 Mask:255.255.255.255
    You're on a different subnet and the network administrators appear to have not set up routing between the networks. So I doubt you can even ping the server from the network you are on:

    Code:
    ping 192.168.29.59
    If there are a lot of people connecting via SSH, the network administrators probably have arranged a solution. Is there a jump host or gateway available that sits on both networks?

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •