Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: SSH non-default port

  1. #11
    Join Date
    Sep 2006
    Beans
    Hidden!

    Re: SSH non-default port

    This may help?

    Edit: /etc/ssh/sshd_config
    Code:
    sudo vim /etc/ssh/sshd_config
    Add or edit the port.
    Port 22
    Port <new port>

    Code:
    sudo /etc/init.d/ssh restart
    I use Port 22 and Port 443.
    Port 22 for local and Port 443 from work ^^
    Last edited by Kemon; January 26th, 2010 at 12:25 AM. Reason: Forgot the restart command.

  2. #12
    pricetech is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Apr 2008
    Beans
    1,651

    Re: SSH non-default port

    If you want the list directly from the source:

    http://www.iana.org/assignments/port-numbers

  3. #13
    Join Date
    Dec 2007
    Location
    The last place I look
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: SSH non-default port

    Quote Originally Posted by pricetech View Post
    If you want the list directly from the source:

    http://www.iana.org/assignments/port-numbers
    I miss Jon Postle. but then again, he would hate our model for internet governance. RIP.
    Things are rarely just crazy enough to work, but they're frequently just crazy enough to fail hilariously.

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

    Re: SSH non-default port

    Why are you changing the port ?

    I have found if you secure your ssh server it does not add much to change the port.

    Personally I advise you :

    1. Use keys and disable passwords.

    2. Block ip with multiple log in attempts. You can do this with iptables, denyhosts, fail2ban ...

    You then do not really need to change the port and keeping the port at 22 just makes it easier for everyone.
    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

  5. #15
    pricetech is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Apr 2008
    Beans
    1,651

    Re: SSH non-default port

    Quote Originally Posted by bodhi.zazen View Post
    Why are you changing the port ?

    I have found if you secure your ssh server it does not add much to change the port.
    While I agree with your advise on securing, he may have another reason for changing the port.

    I have mine running on a different port because I only have one external IP which I need to forward to 2 internal IPs.

Page 2 of 2 FirstFirst 12

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
  •