Wednesday 19 June 2013

Enable ssh key for cpanel users

Problem: When we need to enable ssh access to the users and if the server is only accessible via key file,

If it is a cpanel server, we can do it simply from WHM/Cpanel

make sure that enabled 'SSH Connection Window'  in the feature manager. Check both default and disabled features.

Enable jailed shell access to the user.

Login to the cpanel of the user. Main >> Security >> SSH/Shell Access >> Manage SSH Keys  >> Generate a new   .  fill the details and generate key. You have to specify a passphrase during the key generation.

Go back and go to Public Keys >> Manage Authorization  and make it as authorized . Download Private Key to your local machine and save it with permission 600. try ssh as given below
ssh -i key user@IP -p port
enter passphrase created during KeyGeneration

No comments:

Post a Comment