How-to-add-your-ssh-into-your-cpanel
Many of us think of accessing our cpanel via ssh so heres how you can do it.
- Open cpanel www.yourdomain.com/cpanel or www.yourdomain.com:2083.
- Go to security tab.
- Click ssh Access.
- A new windows will open then click the Manage SSH Keys.
- Another window will open this time click Import Keys.
- in import SSH Key windows add a name of your ssh key the default is id_rsa.
- before you can import the key you will go to your local computer and open terminal if you are using mac or linux machine but if you using window make sure you have putty installed.
- Open terminal and type this to find your id_rsa
$ cd ~/.ssh/
- then type this
$ cat id_rsa.pub
- copy the code from the terminal usually it start with.
ssh-rsa
for easy copy use this code instead
$ pbcopy ~/.ssh/id_rsa.pub
- go back to the cpanel and paste the copied code under Paste the public key into the following text box:.
- then click import
- Before closing the terminal go back Manage SSH under security and under Public Keys click manage.
- then click authorized then close and your done.
- to check if you can access the cpanel using terminal type this
$ ssh servername@yourdomain.com
where servername is usualy the name of your domain.