Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 32

Thread: ssh over internet

  1. #11
    Join Date
    Jul 2011
    Beans
    33

    Re: ssh over internet

    In router i only opened port for server and also set static LAN address for it. So its assigned the same subnetwork address every time it reconnects. My internet connection tho isnt static so i have to check that one every time i relog and so...

  2. #12
    Join Date
    Apr 2006
    Location
    Ubuntuland
    Beans
    2,124
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: ssh over internet

    Quote Originally Posted by matuskap View Post
    In router i only opened port for server and also set static LAN address for it. So its assigned the same subnetwork address every time it reconnects. My internet connection tho isnt static so i have to check that one every time i relog and so...
    It still sounds like port 8888 is not getting to your router. Try port 22 or 23 instead. I once worked at a company that was blocking 22 outbound, so I changed to 23 and that worked fine.
    24 beers in a case, 24 hours in a day. Coincidence? I think not!

    Trusty Tahr 64 bit, AMD Phenom II 955 Quad Core 3.2GHz, GeForce 9600 GT
    16G PC2-6400 RAM, 128 GB SSD, Twin 1TB SATA 7200 RPM RAID0

  3. #13
    Join Date
    Jul 2011
    Beans
    33

    Re: ssh over internet

    Port 22 gets me inside the router. I mean router itself... Thats why i tried to redirect via 8888.

  4. #14
    Join Date
    Aug 2006
    Beans
    27
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: ssh over internet

    This may sound dumb (and apologies if it is!) but have you tried to connect without a username? i.e. ssh - p 8888 <your_ip> and force a full login?

  5. #15
    Join Date
    Apr 2006
    Location
    Ubuntuland
    Beans
    2,124
    Distro
    Ubuntu 13.10 Saucy Salamander

    Question Re: ssh over internet

    Quote Originally Posted by matuskap View Post
    Port 22 gets me inside the router. I mean router itself... Thats why i tried to redirect via 8888.
    8888 is not a good choice as it is reserved for other uses.

    Why don't you use 22? or 23?
    24 beers in a case, 24 hours in a day. Coincidence? I think not!

    Trusty Tahr 64 bit, AMD Phenom II 955 Quad Core 3.2GHz, GeForce 9600 GT
    16G PC2-6400 RAM, 128 GB SSD, Twin 1TB SATA 7200 RPM RAID0

  6. #16
    Join Date
    Dec 2009
    Location
    Germany
    Beans
    86
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: ssh over internet

    Quote Originally Posted by matuskap View Post
    Port 22 gets me inside the router. I mean router itself...
    I don't know what you mean by that. Is the router running some service on 22???

    Did you try any ports above 50.000 for forwarding, and any other ports on the ssh server apart from 22 (e.g. the same you use for forwarding)? I know you said ssh is working via LAN, but everyone seems to be running out of ideas. Also, you need to restart the server after editing sshd_config (sorry if you know all this already).

    And just to double check, can you post output from ifconfig from both server and client and the statement you use to connect via LAN?

    ~H

  7. #17
    Join Date
    Dec 2009
    Location
    Germany
    Beans
    86
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: ssh over internet

    ah, seems there ARE still some more ideas out there.... i am such a slow writer

  8. #18
    Join Date
    Jul 2011
    Beans
    33

    Re: ssh over internet

    Router has its own remote access, for remote management via ssh. So if i call ssh -p 22 routeruser@internet_address i get into router itself... Not computer sitting behind listening to 22.

    Now:
    Ifconfig of server

    Code:
    eth0      Link encap:Ethernet  HWaddr 
              inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::20e:2eff:fe84:198f/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:3614 errors:0 dropped:0 overruns:0 frame:0
              TX packets:2174 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:395505 (395.5 KB)  TX bytes:420332 (420.3 KB)
              Interrupt:11 Base address:0xc000 
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:4109 errors:0 dropped:0 overruns:0 frame:0
              TX packets:4109 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:1208743 (1.2 MB)  TX bytes:1208743 (1.2 MB)
    
    virbr0    Link encap:Ethernet  HWaddr 
              inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
              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:0 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    Ifconfig of desktop

    Code:
    eth0      Link encap:Ethernet  HWaddr 
              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)
              Interrupt:47 Base address:0xa000 
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:1917 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1917 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:146051 (146.0 KB)  TX bytes:146051 (146.0 KB)
    
    wlan0     Link encap:Ethernet  HWaddr 
              inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::216:eaff:fe65:58c/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:1795785 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1034172 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:2603521922 (2.6 GB)  TX bytes:109188948 (109.1 MB)
    To connect via LAN(which is currently working) i use
    Code:
    ssh <user>@192.168.1.5
    I changed port to 58888 to avoid any collisions with apps using that port by default (apache does so as as ive found out) but outcome still remains the same.

    Code:
    ssh -p 58888 <user>@current_internet_Address
    says connection refused for me and nothing happening for others outside my network.
    Last edited by matuskap; October 30th, 2011 at 09:25 PM.

  9. #19
    Join Date
    Aug 2006
    Beans
    27
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: ssh over internet

    In your first post (screenshot) it looks like you are forwarding to 192.168.1.3 whereas in your post above you seem to suggest that your server is at 192.168.1.5.

    May also be a good idea to edit and hide your mac address info in your last post (I know, I'm paranoid!)

  10. #20
    Join Date
    Dec 2009
    Location
    Germany
    Beans
    86
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: ssh over internet

    Ahhh, your forwarding rule is wrong. ssh is directed to your desktop, not the server IP. Change the destination IP to 192.168.1.5 and things should finally work for you.

    ~H

Page 2 of 4 FirstFirst 1234 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
  •