The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    0
    Trophy Points:
    16
    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:
    85
    Likes Received:
    0
    Trophy Points:
    6
    Default is 22 ?
     
  3. shammi1234

    shammi1234 Member

    Joined:
    Jul 26, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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:
    18
    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