Portal Home > Knowledgebase > Articles Database > SSH to Cpanel server with public/private key
SSH to Cpanel server with public/private key
Posted by Tomcatf14, 04-15-2010, 06:49 AM |
Hi,
I have root access to one of the Cpanel server but could not login to SSH with the same password. The old administrator told me to access with the key. I have tried importing/generate key with Cpanel but I still could not login from my Putty/SecureCRT.
Anybody can help?
|
Posted by PingVPS, 04-15-2010, 06:58 AM |
Direct ssh login for root account could be disabled? Ask old admin if you need to login as another user and su into root?
|
Posted by Tomcatf14, 04-15-2010, 07:10 AM |
Could not get hold of the old admin. Has anybody access root@SSH on Cpanel server with key before?
|
Posted by ksv2nash, 04-15-2010, 07:15 AM |
Hello,
You can do it from whm do u have access for whm ?
and check ssh post while you login from ssh
|
Posted by ServerSitters_Paul, 04-15-2010, 12:37 PM |
Enable SSH on another account on the server. Then ssh using that username. Once you're connected try su - root
Enter in the root password and it should switch you to the root user.
|
Posted by Tomcatf14, 04-15-2010, 01:17 PM |
It's a DNS only Cpanel...So I can't enable any SSH on any user account
|
Posted by Tomcatf14, 04-15-2010, 01:18 PM |
This is a NS2 Cpanel DNS server, is there anyway to access it from NS1 since both are linked to sync the zones?
|
Posted by server prodigy, 04-15-2010, 06:29 PM |
1. Logon to WHM and goto Main >> Security >> Security Center
2. Under “SSH Password Auth Tweak” uncheck "disable the Password Authentication".
You should be able to login to SSH using a password now.
or you can generate a new key to keep using key only SSH:
3. Under “Manage SSH Keys” click on Generate new key.
4. Give a Key name and Generate a good password (and remember it).
5. Once done, you will see a pair of public private keys. Authorize the public key to connect.
6. View/Download the private key to your system. If you’re using putty it can generate in relevant format.
7. Save the key in a secure place, import into your SSH program and chmod to 600 so that no one can read it
|
Add to Favourites Print this Article
Also Read