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!

ssh port change problem

Discussion in 'General Discussion' started by -T-, Oct 9, 2008.

  1. -T-

    -T- Member

    Joined:
    May 21, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    I want the port for ssh off 22, so I changed it in /etc/sshd/sshd_config

    But that took out ssl for whm and cpanel on port 2087 and 2083

    I added those ports to sshd_config too, but still get a "don't speak ssl on this port" error when trying to connect

    Any way to work around this?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,479
    Likes Received:
    421
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Did you restart SSH after your changes?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. linux7802

    linux7802 Well-Known Member

    Joined:
    Dec 14, 2007
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Solution

    Follow the steps

    Login into your server as root

    Find the line '#Port 22' and uncomment it and change it to look like 'Port [Random high level port here]'.

    For example we changes the port no22 to port no 322

    Now save the file and retsrat ssh service

    If you have nay firewall then open the port no 322 in your server firewall and try to access server with the new SSH port no :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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