Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: ssh question remote location

  1. #1
    Join Date
    Aug 2008
    Beans
    191
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Question ssh question remote location

    Hi everyone,

    I have a quick ssh question...

    I live in a college dorm but have a desktop at home with ubuntu + ssh server...
    When I visit home and I want to connect to my desktop I just type:

    Code:
    ssh 192.168.1.95
    192.168.1.95 --> my desktop on my dsl wireless router...

    So I was wondering if I want to connect from my college dorm, what ip whould I have to connect to?

    While being home I tried typing:
    Code:
    ssh myDesktopInternetIP
    myDesktopInternetIP --> Ip that I got from "whatismyip.com"

    but doing this resulted in:
    Code:
    ssh: connect to host myDesktopInternetIP port 22: Connection refused
    So how would I connect to my desktop from remote location?
    * Sony Vaio EB series
    * ubuntu 12.04 & linux arch
    * 2.4 Ghz i5 Processor | 6GB DDR3 RAM
    * ATI Radeon HD 5470 512 MB DDR3 VRAM

  2. #2
    Join Date
    Sep 2009
    Location
    surrey uk
    Beans
    2,057
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: ssh question remote location

    I take it that at collage you are on there network, if so I doubt if they forward the ssh port22, the other thing is if they do forward the ssh port it might not be on port 22.
    You would have to ask the IT department about it.
    Sorry not much help.
    DUAL BOOT XP & Natty, Trying LFS

  3. #3
    Join Date
    Mar 2009
    Location
    Eastern USA
    Beans
    13
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: ssh question remote location

    There are three things you'll need to do for this to work.

    1) Get a free host name from dyndns.com or zoneedit.com. There are others but never checked into any of them.

    2) Setup port forwarding on the router at your house. The steps to do this vary depending on who made your router. You also might have to change settings on the cable/dsl modem supplied by your ISP.

    4) Install a dynamic dns client to automatically update the ip address associated with your selected host name.

    Once the above steps are completed, you can connect to your server at home from any where there is an Internet connection using the host name from step 1 instead of trying to remember a string of numbers.

  4. #4
    Join Date
    Aug 2008
    Beans
    191
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: ssh question remote location

    Solved a few of my own questions, just look at post below....
    Last edited by Eremis; December 29th, 2010 at 12:59 AM.
    * Sony Vaio EB series
    * ubuntu 12.04 & linux arch
    * 2.4 Ghz i5 Processor | 6GB DDR3 RAM
    * ATI Radeon HD 5470 512 MB DDR3 VRAM

  5. #5
    Join Date
    Aug 2008
    Beans
    191
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: ssh question remote location

    I found where "port forwarding on my router is, I just dont know what to fill in the blanks (for ssh), I attached a picture...
    Attached Images Attached Images
    Last edited by Eremis; December 29th, 2010 at 12:59 AM.
    * Sony Vaio EB series
    * ubuntu 12.04 & linux arch
    * 2.4 Ghz i5 Processor | 6GB DDR3 RAM
    * ATI Radeon HD 5470 512 MB DDR3 VRAM

  6. #6
    Join Date
    Mar 2009
    Location
    Eastern USA
    Beans
    13
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: ssh question remote location

    Thanks for the screen shot. It's a big help.

    Service name: Enter what ever helps you to remember why you setup this port forwarding rule
    Global Port Range: The port you want to connect to from the internet
    Base Host Port: The port that your ssh server is listening to
    Protocal: Set to TCP

  7. #7
    Join Date
    Apr 2007
    Beans
    10

    Re: ssh question remote location

    What is your internet service provider? Do you have admin access to the router?

    Port forwarding basically tells your router what ip & port to forward inbound traffic.

  8. #8
    Join Date
    Aug 2008
    Beans
    191
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: ssh question remote location

    so for the range can i put 22-22 (since ssh in on 22)?
    * Sony Vaio EB series
    * ubuntu 12.04 & linux arch
    * 2.4 Ghz i5 Processor | 6GB DDR3 RAM
    * ATI Radeon HD 5470 512 MB DDR3 VRAM

  9. #9
    Join Date
    Aug 2008
    Beans
    191
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: ssh question remote location

    so for ssh it should be like this:
    Service name: my ssh server
    Global Port Range: 22 - 22
    Base Host Port: 22
    Protocal: TCP

    right?

    I know its recommended to change the default 22 to something else...
    Just one more question, will DynDNS interfere with security/online privacy, since I have a static name....?
    * Sony Vaio EB series
    * ubuntu 12.04 & linux arch
    * 2.4 Ghz i5 Processor | 6GB DDR3 RAM
    * ATI Radeon HD 5470 512 MB DDR3 VRAM

  10. #10
    Join Date
    Aug 2008
    Beans
    191
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: ssh question remote location

    When I try to enable it it asks me a new question (attachment)
    If I want dynamic or host...

    When I choose host it asks me for host ip adress...
    So I need dynamic?
    Attached Images Attached Images
    * Sony Vaio EB series
    * ubuntu 12.04 & linux arch
    * 2.4 Ghz i5 Processor | 6GB DDR3 RAM
    * ATI Radeon HD 5470 512 MB DDR3 VRAM

Page 1 of 3 123 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
  •