Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Can set multiple SSH2 ports ?

Discussion in 'General Discussion' started by taotoon, May 16, 2008.

  1. taotoon

    taotoon Well-Known Member

    Joined:
    Nov 14, 2004
    Messages:
    135
    Likes Received:
    1
    Trophy Points:
    166
    Hint: Set multiple SSH2 ports

    nano -w /etc/ssh/sshd_config

    #multiple ports by add new line
    Port 22
    Port 7410
    Port 7595

    #Protocol 2, 1
    Protocol 2

    /etc/rc.d/init.d/sshd restart

    -------------------------------------------------------------------------------------------------------

    wtmp, who, w, last, they all stopped logging.

    If you're using CentOS, make sure 'UseLogin yes' is in
    your /etc/ssh/sshd_config file. And then service sshd restart.
     
    #1 taotoon, May 16, 2008
    Last edited: May 17, 2008
  2. natong

    natong Well-Known Member

    Joined:
    May 17, 2008
    Messages:
    89
    Likes Received:
    1
    Trophy Points:
    56
    Default is 22 ?
     
  3. shammi1234

    shammi1234 Member

    Joined:
    Jul 26, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    151
    You can run two ssh with two different ports, bt you shld use two different config files
     
  4. ffeingol

    ffeingol Well-Known Member
    PartnerNOC

    Joined:
    Nov 9, 2001
    Messages:
    215
    Likes Received:
    1
    Trophy Points:
    318
    cPanel Access Level:
    DataCenter Provider
    Why have 2 different config files? Two port lines works just fine as we have that setup on several servers.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice