Results 1 to 6 of 6

Thread: Opening Port 22

  1. #1
    Join Date
    Jan 2011
    Location
    Boonesville Kentucky
    Beans
    41
    Distro
    Ubuntu 12.04 Precise Pangolin

    Opening Port 22

    When I type in this command:
    Code:
    ssh localhost
    I get this output:
    Code:
    ssh: connect to host localhost port 22: Connection refused
    My question is: How do I disable the firewall for Port 22.

    FYI: I am following the examples in a .pdf book called "The Linux Command Line by William E. Shotts,Jr.".

  2. #2
    Join Date
    Aug 2009
    Beans
    75
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Opening Port 22

    Is the ssh server (sshd I think) running on your local system? It sounds like there is nothing listening for incoming ssh connections.
    Toshiba Satellite L505 laptop running Ubuntu 12.04 64-bit / Windows 7

    --My Tech Adventures Blog--

  3. #3
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Opening Port 22

    You have to install and start openssh-server
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  4. #4
    Join Date
    Nov 2007
    Beans
    450

    Re: Opening Port 22

    Have you installed the SSH server and started it?

    https://help.ubuntu.com/10.10/server...sh-server.html

    Have a read here, it'll help you get ssh up and running. Once it's running you can then connect to localhost.

  5. #5
    Join Date
    Jan 2011
    Location
    Boonesville Kentucky
    Beans
    41
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Opening Port 22

    AH HA! That was it. Thanks everyone.

  6. #6
    Join Date
    Aug 2007
    Beans
    1,210

    Re: Forwarding Port 22

    You need to be very careful if you are forwarding Port 22 on your Router.

    That PDF Document states "if the system is either running or is behind a
    firewall it must allow incoming network connections on TCP port 22."

    But, if you are on your LAN (Local Area Network) and not connecting via the
    WAN (Wide Area Network), then you DO NOT need to Forward Port 22 on your
    Router. By forwarding your Router's Port you will be continuously attacked
    by others in foreign countries, etc. You can verify this in your logs.

    Try playing on your LAN with the Port not Forwarded, or Forward a Higher
    Numbered port (50000) to your Routers Port 22 for SSH, and use KEYS, not Passwords.
    That will prevent access attempts.

    Don't be fooled into thinking your system is SAFE & SECURE, with your Routers Port 22
    forwarded.


    REF:
    http://sourceforge.net/apps/phpbb/fr...p?f=94&t=11500

    LK
    Last edited by lkraemer; August 30th, 2011 at 12:51 PM.

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
  •