Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Aug 2006
    Posts
    47

    Default Reinstall ssh defaults

    Greetings,

    I've tried to change the port on sshd server and now I can't access the server by ssh.

    I still have root password and WHM / Cpanel access as root, as well as FTP, etc.


    Do anybody has any clue as how I could restore the default sshd_config file or something, using whm or any of the things I still have access to?

    The server is about 300 miles from my office and on-hands services are expensive.

    Best regards and thanks in advance.

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2008
    Location
    PK
    Posts
    443

    Default

    Quote Originally Posted by maquinadigital View Post
    Greetings,

    I've tried to change the port on sshd server and now I can't access the server by ssh.

    I still have root password and WHM / Cpanel access as root, as well as FTP, etc.


    Do anybody has any clue as how I could restore the default sshd_config file or something, using whm or any of the things I still have access to?

    The server is about 300 miles from my office and on-hands services are expensive.

    Best regards and thanks in advance.
    Try resetting SSH via WHM using this.

    http://yourdomain.com:2086/scripts2/...safesshrestart

    Make sure, the port you are setting for SSH is opened in the server firewall before resetting SSH port.
    1 solution works for all problems. Trying harder!
    HostMasterTips - Understanding Tech Support

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Location
    New Jersey, USA
    Posts
    397

    Default

    If you changed the ssh port and you got locked out, most likely there's a firewall blocking that port. If you have kvm access you can just stop the firewall and see if that helps.

  4. #4
    Member
    Join Date
    Aug 2006
    Posts
    47

    Default

    Quote Originally Posted by JPC-Howard View Post
    Try resetting SSH via WHM using this.

    http://yourdomain.com:2086/scripts2/...safesshrestart

    Make sure, the port you are setting for SSH is opened in the server firewall before resetting SSH port.
    Thanks! It worked!
    The port was open but I forget to check if there was another service running on it and... it was.

    Regained access to the server, reconfigured another port, and it's working fine.

    Live safer, thank you very much.

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2008
    Location
    PK
    Posts
    443

    Default

    Quote Originally Posted by maquinadigital View Post
    Thanks! It worked!
    The port was open but I forget to check if there was another service running on it and... it was.

    Regained access to the server, reconfigured another port, and it's working fine.

    Live safer, thank you very much.
    Glad your issue was solved.
    1 solution works for all problems. Trying harder!
    HostMasterTips - Understanding Tech Support

  6. #6
    Member
    Join Date
    Jun 2003
    Posts
    55

    Default

    It also solved my problem, thanks Howard.

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2008
    Location
    PK
    Posts
    443

    Default

    Glad I could help.

    Quote Originally Posted by neorder View Post
    It also solved my problem, thanks Howard.
    1 solution works for all problems. Trying harder!
    HostMasterTips - Understanding Tech Support

Similar Threads & Tags
Similar threads

  1. Er... seriously? magic_quotes_gpc defaults to on?
    By ritontor in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-27-2010, 04:21 PM
  2. How to reinstall SSH
    By grabyourhosting in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 05-03-2007, 08:07 PM
  3. Account Defaults
    By craigbrass in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-24-2007, 11:54 AM
  4. Replies: 1
    Last Post: 12-24-2003, 02:43 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube