Find the answer to your Linux question:
Results 1 to 4 of 4

Thread: ssh ip address

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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, and inet address, how should I use ssh from outside? ssh doesn't work ...


  2. #2
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Riverton, UT, USA
    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
    Stuttgart, Germany
    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. $spacer_open
  5. #4
    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