Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: General questions about ssh

  1. #11
    hakermania's Avatar
    hakermania is offline Τώρα ξέρεις τι γράφω εδώ!
    Join Date
    Aug 2009
    Location
    Greece
    Beans
    1,702
    Distro
    Ubuntu Development Release

    Re: General questions about ssh

    Quote Originally Posted by SeijiSensei View Post
    Is the machine running sshd directly connected to the Internet, or is it behind a router? If the latter, did you use the router's port forwarding tools to forward external port 22 back to the server? If so, and it still doesn't work, your ISP may be blocking connections on port 22. Try setting the external port to some arbitrary port like 22222 and forwarding that back to the server. Make sure you open the arbitrary port using the router's firewalling tools. Then use "ssh -p 22222 yourname.dyndns.org" to connect.

    To check that name resolution is working correctly, try "ping yourname.dyndns.org".
    Thanks for the answer!
    I am using port 8675 for ssh, because I am aware that my ISP can block port 22. But yes, I am behind a router and I haven't forwarded any port!
    @Peter09 I did that and it stays at "Connecing to XXX.XXX.XXX.XXX" and then, after a couple of minutes it says that the connection has timed out!
    Website

    Wallch (Wallpaper Changer): Sourceforge | Launchpad

  2. #12
    Join Date
    May 2007
    Location
    UK near Bedford
    Beans
    3,477
    Distro
    Ubuntu Development Release

    Re: General questions about ssh

    Are both ends of the connection using port 8675? You need to tell the client application and the server application which port to use.

    If you are going through a router (at the server end) then you will need to forward (in the servers local router) port 8675 to the ip address of the server. Otherwise when there is an incoming request from the internet your (servers) router will not know where to send it. The client end does not matter.
    PC

    To get a terminal command to put its output into a file use this format
    {terminal command} > {filename}

  3. #13
    hakermania's Avatar
    hakermania is offline Τώρα ξέρεις τι γράφω εδώ!
    Join Date
    Aug 2009
    Location
    Greece
    Beans
    1,702
    Distro
    Ubuntu Development Release

    Re: General questions about ssh

    Quote Originally Posted by Peter09 View Post
    Are both ends of the connection using port 8675? You need to tell the client application and the server application which port to use.

    If you are going through a router (at the server end) then you will need to forward (in the servers local router) port 8675 to the ip address of the server. Otherwise when there is an incoming request from the internet your (servers) router will not know where to send it. The client end does not matter.
    Got it, so I need to redirect the input at port 8675 to my local IP, good thing it's static (192.168.1.254).

    I will do it soon, and I will let you know how it went!
    Website

    Wallch (Wallpaper Changer): Sourceforge | Launchpad

Page 2 of 2 FirstFirst 12

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
  •