Results 1 to 10 of 22

Thread: [SOLVED] Help with ssh-- port 22 connection refused

Hybrid View

  1. #1
    Join Date
    Jul 2008
    Beans
    28

    Exclamation [SOLVED] Help with ssh-- port 22 connection refused

    I am new to using ssh and wanted to try it out. I have been trying to connect to my ubuntu machine from my mac using ssh. I keep getting this error message:

    Code:
    $ ssh 127.0.0.1
    ssh: connect to host 127.0.0.1 port 22: Connection refused
    Any ideas or suggestions are much appreciated!

    Thanks!
    "Everyone seems to be locked in a room full of windows and all they need is someone to show them the open door..."

  2. #2
    Join Date
    Jan 2007
    Location
    ~/PA/USA
    Beans
    1,980
    Distro
    Ubuntu

    Re: Help with ssh-- port 22 connection refused

    ssh 127.0.0.1
    That's your local, you'll need the IP for your Ubuntu machine

  3. #3
    Join Date
    Jul 2008
    Beans
    28

    Re: Help with ssh-- port 22 connection refused

    Quote Originally Posted by cdtech View Post
    That's your local, you'll need the IP for your Ubuntu machine
    What do you mean by "local"? I thought that was the IP from my ubuntu machine.

    Thanks for the quick response!
    "Everyone seems to be locked in a room full of windows and all they need is someone to show them the open door..."

  4. #4
    Join Date
    Nov 2007
    Location
    South African in London
    Beans
    1,098
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Help with ssh-- port 22 connection refused

    Quote Originally Posted by Iceman99one View Post
    What do you mean by "local"? I thought that was the IP from my ubuntu machine.

    Thanks for the quick response!
    local is your current PC. 127.0.0.1 refers to itelf

    ::1 is the ipv6 version of localhost

  5. #5
    Join Date
    Jul 2008
    Beans
    28

    Re: Help with ssh-- port 22 connection refused

    In what range would the IP be that I'm looking for?
    "Everyone seems to be locked in a room full of windows and all they need is someone to show them the open door..."

  6. #6
    Join Date
    Nov 2007
    Location
    South African in London
    Beans
    1,098
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Help with ssh-- port 22 connection refused

    Quote Originally Posted by Iceman99one View Post
    In what range would the IP be that I'm looking for?
    No idea, it could be anything from 1.0.0.1 - 238.255.255.255

    check your linux box by typing:

    ifconfig

    What are the results, we should be able to get it from there.

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
  •