SSHing into Ubuntu

Discussion in 'Jailbreaks and iOS Hacks' started by nigelquest, Feb 9, 2010.

  1. nigelquest macrumors member

    Joined:
    Jan 30, 2008
    #1
    I am using mobileterminal to SSH in to a Ubuntu box, but it keeps timing out without connecting. I can ping and ssh in to the iphone, just not from the iphone in to the box. I am using root@@192.168.1.xxx (my correct ip address) to log in. Any suggestions? Thanks!
     
  2. foob macrumors 6502

    foob

    Joined:
    Feb 17, 2009
    #2
    It could be the router or firewall. You need to enable port forwarding on the router so it can let ssh requests pass to the computer, and have the firewall allow the ssh port too. What firewall are you using?
     
  3. nigelquest thread starter macrumors member

    Joined:
    Jan 30, 2008
    #3
    Im not using a firewall. Im booting into ubuntu off a disk on a windows machine. Ill try forwarding port 22 and see if that helps.
     
  4. outphase macrumors 65816

    Joined:
    Jun 13, 2009
    Location:
    Parts Unknown
    #4
    You have to install opensshd to set up the ssh server. I don't know if the wubi disk has it ready to go.

    sudo aptitude install opensshd
     
  5. nigelquest thread starter macrumors member

    Joined:
    Jan 30, 2008
    #5
    The port forwarding worked. Once I forwarded port 22 on my router to my computers ip address I could ssh right in.

    I needed to dump my disk because I had a lock up and had to restore but I have unbacked up pictures. Its backing up now so hopefully i can extract them.

    Thanks for the help!
     
  6. ckong macrumors regular

    Joined:
    Nov 12, 2009
    #6
    If you need public-internet to private-intranet through your Linksys (or link) router, I'd recommend (at the very least) forwarding a randomly chosen port to 22. Port 22 is well known. You'll get multiple attacks per minute once they find you. Believe me...I speak from experience.
     
  7. nigelquest thread starter macrumors member

    Joined:
    Jan 30, 2008
    #7
    Thanks for the advice. I plan to turn the forwarding off asap : )
     

Share This Page