Find the answer to your Linux question:
Results 1 to 4 of 4
Hi all, I think this should be an FAQ but could not find a right keyword to google ... I'm using a wireless router and I have two computers sharing ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    9

    ssh ip address


    Hi all,

    I think this should be an FAQ but could not find a right keyword to google ...

    I'm using a wireless router and I have two computers sharing the network, mine on linux and another not. Now I can ssh using the inet address from other computer. But I cannot ssh from outside. Say the ip address is xxx.xxx.xxx.xxx, and inet address 192.168.1.35, how should I use ssh from outside? ssh xxx.xxx.xxx.xxx doesn't work ...

    Thanks!

  2. #2
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    In the router, you need to forward the ssh port (22 by default) to your Linux machine's address. Then from the outside, you can ssh to your router's external address, and the router will pass it on to your Linux box.
    Stand up and be counted as a Linux user!

  3. #3
    Linux Newbie framp's Avatar
    Join Date
    Jul 2006
    Location
    Stuttgart, Germany
    Posts
    240
    Don't forget to harden your system you want to access from the inet. There are a lot of scriptkiddies who execute portscans for port 22 and try to log in !
    One change I made on my system reduced the number of illegal ssh requests form the inet by 99%: Usage of another port than port 22 in my sshd config
    "Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." Linus Benedict Torvalds

  4. #4
    Just Joined!
    Join Date
    Jan 2007
    Posts
    9
    Thanks all, it works. And I will try to use port 1xxxx, .

Posting Permissions

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