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.

users ssh port

Discussion in 'General Discussion' started by bomozah, Apr 23, 2009.

  1. bomozah

    bomozah Registered

    Joined:
    Dec 4, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hello

    I wan't To Provide ssh Services For My Client And I have Set All Site Permission to user By Enable Suphp
    So I Know The Method How To Enable That For Any User i won't by WHM
    But My Question is How Can I Give Each Account Custom Port For Logning ssh

    And What The Steps To Do To Secure The SSh in WHM

    Please Help
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    You can make SSH listen on multiple ports by listing them under /etc/ssh/sshd_config file like below:

    Port 22
    Port 2222

    Restart sshd to make the change take effect:
    $ service sshd restart

    You can log on using:
    $ ssh user@server -p 2222
     
  3. bomozah

    bomozah Registered

    Joined:
    Dec 4, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    that's for the main ssh port for root access
    i running a shared host on my server and i wan't To Provide A SSH For My Client With user Permission Access So How Can i Gave Each User Custom Port
    Example:

    username port
    ======= ========

    root 22

    siteuser 12251

    siteuser2 6654

    I Hope You Understand Me Now

    Regards
     
  4. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    There's no method (or reason) for linking a port to a user... you'd just have to keep track of it outside the box so that you know which user is assigned what port.

    But why would you need/want to anyway?
     
Loading...

Share This Page