Results 1 to 14 of 14

Thread: SSH - logging in remotely - 'to' secure? ;)

  1. #1
    Registered+
    Join Date
    Jul 2004
    Posts
    37
    Thanks
    0
    Thanked
    0 times in 0 posts

    SSH - logging in remotely - 'too' secure? ;)

    Hi all,

    Anyone here got any experience with SSH? Trying to set it up so I can connect to a Linux server remotely, but without any luck. Am port forwarding port 23 on the router to the linux server ... but not working and am a bit stuck for ideas.

    Can any networking experts here lend a hand? Thanks!
    Last edited by Bobby; 11-08-2005 at 06:42 PM.

  2. #2
    Ex-MSFT Paul Adams's Avatar
    Join Date
    Jul 2003
    Location
    %systemroot%
    Posts
    1,926
    Thanks
    29
    Thanked
    77 times in 59 posts
    • Paul Adams's system
      • Motherboard:
      • Asus Maximus VIII
      • CPU:
      • Intel Core i7-6700K
      • Memory:
      • 16GB
      • Storage:
      • 2x250GB SSD / 500GB SSD / 2TB HDD
      • Graphics card(s):
      • nVidia GeForce GTX1080
      • Operating System:
      • Windows 10 x64 Pro
      • Monitor(s):
      • Philips 40" 4K
      • Internet:
      • 500Mbps fiber
    Isn't SSH traditionally TCP port 22, and Telnet is port 23?
    ~ I have CDO. It's like OCD except the letters are in alphabetical order, as they should be. ~
    PC: Win10 x64 | Asus Maximus VIII | Core i7-6700K | 16GB DDR3 | 2x250GB SSD | 500GB SSD | 2TB SATA-300 | GeForce GTX1080
    Camera: Canon 60D | Sigma 10-20/4.0-5.6 | Canon 100/2.8 | Tamron 18-270/3.5-6.3

  3. #3
    Registered+
    Join Date
    Jul 2004
    Posts
    37
    Thanks
    0
    Thanked
    0 times in 0 posts
    Yep, you're right - I did mean 22, I have forwarded them both, though, just to be sure.

  4. #4
    Treasure Hunter extraordinaire herulach's Avatar
    Join Date
    Apr 2005
    Location
    Bolton
    Posts
    5,618
    Thanks
    18
    Thanked
    172 times in 159 posts
    • herulach's system
      • Motherboard:
      • MSI Z97 MPower
      • CPU:
      • i7 4790K
      • Memory:
      • 8GB Vengeance LP
      • Storage:
      • 1TB WD Blue + 250GB 840 EVo
      • Graphics card(s):
      • 2* Palit GTX 970 Jetstream
      • PSU:
      • EVGA Supernova G2 850W
      • Case:
      • CM HAF Stacker 935, 2*360 Rad WC Loop w/EK blocks.
      • Operating System:
      • Windows 8.1
      • Monitor(s):
      • Crossover 290HD & LG L1980Q
      • Internet:
      • 120mb Virgin Media
    By not working what exactly do you mean? First thing id check is whether the port forwarding is breaking it, can you connect to it from a machine on the same lan? If so then its something with your router. If thats the case then one solution is to put it in the dmz, but its not something id relish doing. You could also try a port scanner to see if its actually open. You havent got some kind of iptables thing going have you? COs it could be set to auto reject ports you havent explicitly open on the linux machine, IIRC they arent all open by default like on a windows box.

  5. #5
    Registered+
    Join Date
    Jul 2004
    Posts
    37
    Thanks
    0
    Thanked
    0 times in 0 posts
    I can connect find from any machine in the local lan - which as you say points to a problem with the router. However, I forwarded port 80 and started up Apache and can see a test page fine externally. So ... something to do with SSH specifically? Strange one, this ...

  6. #6
    Treasure Hunter extraordinaire herulach's Avatar
    Join Date
    Apr 2005
    Location
    Bolton
    Posts
    5,618
    Thanks
    18
    Thanked
    172 times in 159 posts
    • herulach's system
      • Motherboard:
      • MSI Z97 MPower
      • CPU:
      • i7 4790K
      • Memory:
      • 8GB Vengeance LP
      • Storage:
      • 1TB WD Blue + 250GB 840 EVo
      • Graphics card(s):
      • 2* Palit GTX 970 Jetstream
      • PSU:
      • EVGA Supernova G2 850W
      • Case:
      • CM HAF Stacker 935, 2*360 Rad WC Loop w/EK blocks.
      • Operating System:
      • Windows 8.1
      • Monitor(s):
      • Crossover 290HD & LG L1980Q
      • Internet:
      • 120mb Virgin Media
    Hmm, curious, what ISP are you using? Some of them will block a lot of ports. try setting sshd to listen on port 80 and see if you can connect then.

  7. #7
    Registered+
    Join Date
    Jul 2004
    Posts
    37
    Thanks
    0
    Thanked
    0 times in 0 posts
    Good thinking - I'll give that a try.

  8. #8
    Registered+
    Join Date
    Jul 2004
    Posts
    37
    Thanks
    0
    Thanked
    0 times in 0 posts
    Right - have set SSH server on port 80. Tried to connect, and got an entry logged by the firewall, which was further than it was getting before. Set firewall to allow access to that IP, but still failed to connect. Interestingly, the IP address in the firewall log is different from that of the machine I'm trying to connect from. Could this be an intervening proxy server somewhere? If so, any ideas on how I can get around it?

  9. #9
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    68 times in 51 posts
    ok - return to basics, take ssh off the webserver port and put it back to the orgional / default configuration.

    Now lets get some basic problem debugging ssh to your linux server with a -v flag

    ssh -v $your_user@$remotehost

    and lets see what the output is

    Also - if you share the IP address/hostname someone/me can try ssh'ing to it just to check connectivity.

    Lets get the basics right before going into "custom" configurations.
    It is Inevitable.....


  10. #10
    Member
    Join Date
    Oct 2003
    Posts
    174
    Thanks
    0
    Thanked
    0 times in 0 posts
    Are you trying to connect to the inside, from the inside, via the outside address.
    ph33r my toothbrush, for it is made of SCROTANIUM

  11. #11
    Registered+
    Join Date
    Jul 2004
    Posts
    37
    Thanks
    0
    Thanked
    0 times in 0 posts
    Getting 'Connection timed out' message with the verbose switch.

    MiggyMan - am connecting to the IP address assigned by my ISP, on a port forwarded to the Linux server machine (with a IP address from the reserved range), from an external location.

    Hmmm ...

  12. #12
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    68 times in 51 posts
    time out means either ssh is not running on the server your connecting to, or the traffic is not getting there.

    I'd be its the port forward not working. Chuck us the ip address and I'll run a test and see whats what, just to remove the obvious.
    It is Inevitable.....


  13. #13
    Registered+
    Join Date
    Aug 2005
    Location
    Hampshire, UK
    Posts
    27
    Thanks
    1
    Thanked
    12 times in 1 post
    Must be the port forwarding. Whats the router being used?
    Or guess it could be IPtables config if setup on the Linux box.

  14. #14
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    68 times in 51 posts
    done further testing on this, problem appears to be at the client end
    It is Inevitable.....


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Firefox... was it ever all THAT secure?
    By Nick in forum General Discussion
    Replies: 14
    Last Post: 23-07-2005, 05:49 PM
  2. Internet & secure LAN
    By lll_James_lll in forum Networking and Broadband
    Replies: 0
    Last Post: 09-04-2004, 10:03 PM

Posting Permissions

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