Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Nov 2007
    Posts
    865

    Default change SSH port Via WHM

    hi

    can i change SSH port via WHM or else any easy steps for it

    thanks in advance

    nilesh

  2. #2
    Member arunsv84's Avatar
    Join Date
    Oct 2008
    Location
    India
    Posts
    129
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    You can change the ssh port in the mail configuration file.

    vi /etc/ssh/sshd_config

    Change
    #Port 22

    to

    Port * (any port)

    Also make sure to open your firewall.

  3. #3
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default

    I'd open up the port in the firewall first (so as not to forget). (restart the firewall after the change)

    Then specify the port (as the previous instructions make it look like you're trying to run ssh on every port)

    Then you'll have to restart the ssh service after making the change.

  4. #4
    Member
    Join Date
    Nov 2007
    Posts
    865

    Default

    hi

    thanks for the updates

    i know the SSH way & vi is very hardly editor

    you can choose friendly editor like

    nano /etc/ssh/sshd_config

    then restart sshd

    service sshd restart

    Anyways thanks for the updates

    Regards,
    n

  5. #5
    Registered User
    Join Date
    Apr 2009
    Posts
    2

    Default

    before changing port for SSH need to be sure than no other application/service use it.
    You can check what ports are using now, and choose different, but it will be nice surprise if you will setup some new soft and after reboot your will be without SSH due ports conflict .
    So check new port for using by other services (and not installed too), see list of registered tcp ports before, and choose unused in list.

  6. #6
    Member
    Join Date
    Nov 2007
    Posts
    865

    Arrow

    Thanks guy's

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Location
    New Jersey, USA
    Posts
    397

    Default

    Also make sure your firewall is update accordingly, otherwise you will be locked out.

  8. #8
    Member mykkal's Avatar
    Join Date
    Feb 2007
    Location
    Atlanta, Georgia, United States
    Posts
    110

    Default an easy editor

    Pico is the easiest editor to use.

    Thats what they start most college students with. VI is advanced. More advance and unfriendly than it needs to be.

    pico /etc/ssh/sshd_config

Similar Threads & Tags
Similar threads

  1. Change SSH Port
    By polkocholo in forum Security
    Replies: 9
    Last Post: 03-19-2011, 01:44 AM
  2. Change the SSH port?
    By mikelbeck in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-11-2006, 12:30 PM
  3. Change SSH port
    By ptez in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-11-2006, 12:08 AM
  4. Can't change SSH port???
    By GrAfiX in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 03-11-2006, 10:52 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube