Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    -T-
    -T- is offline
    Member
    Join Date
    May 2005
    Posts
    5

    Default ssh port change problem

    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. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,893
    cPanel/Enkompass Access Level

    Root Administrator

    Question

    Did you restart SSH after your changes?
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  3. #3
    Member linux7802's Avatar
    Join Date
    Dec 2007
    Posts
    224
    cPanel/Enkompass Access Level

    Root Administrator

    Default Solution

    Follow the steps

    Login into your server as root

    pico -w /etc/ssh/sshd_config
    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

    Port 322
    #Protocol 2,1
    #AddressFamily any
    #ListenAddress 0.0.0.0
    #ListenAddress ::
    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
    Regards,
    G R Sonar
    cPanel Hosting Blog

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. problem to change ssh port
    By ullalla in forum New User Questions
    Replies: 9
    Last Post: 03-14-2011, 06:41 AM
  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