Publication @fozzy |
Connecting to hosting via SSH (cPanel, macOS)
Instructions for creating SSH connection with hosting with cPanel control panel. To establish a connection, use the Terminal utility in macOS.
Generating SSH keys
1. In order to create SSH keys run the Terminal app and execute the following command:
ssh-keygen -t rsa
2. The system will ask you to save your keys to /home/user/.ssh/id_rsa. Press Enter.
3. Come up with a password for your key and type it twice. No symbols will be displayed when typing the password, this is normal. Once you’ve finished, press Enter.
4. You will the message stating that your pair of keys is created.
5. To view the public key’s code execute the following command:
cat ~/.ssh/id_rsa.pub
6. Copy your public key’s code to your clipboard and to a safe place.
Configuring an SSH connection
7. Go to your client area to the “Hosting management” section and click the “Open cPanel” button.
8. cPanel will be opened. Go to the “Security” section and click the “SSH Access” button.
9. Click the “Manage SSH keys” button.
10. Click the “Import Key” button.
11. Paste your public key’s code you’ve copied into the “Paste the public key...” box.
12. Type the password you used when creating the keys into the “Passphrase” box.
13. Click the “Import” button.
14. You will see the “The key was imported.” message. Click the “Go back” link.
15. Now you can see, that your key is “not_authorized”. Click the “Manage” button in front of this key.
16. Click the “Authorize” button.
17. You will see the “The key has been authorized!” message. Click the “Go back” link.
Establishing an SSH connection
18. Now go back to the Terminal app to establish an SSH connection.
19. Execute the following command:
ssh your_login@your_server
where
your_login – your hosting service login which is sent in the welcome email after ordering a hosting service;
your_server – your control panel’s address (it can be copied from the browser’s address line). For example – cpanel20.v.fozzy.com.
20. The system will ask you to confirm this operation. Type ‘yes’ and press Enter.
21. Type the password you used when creating the keys. No symbols will be displayed when typing the password, this is normal. Once you’ve finished, press Enter.
22. Done
More helpful instructions can be found on our website
Fozzy – The fastest hosting
- Shared Hosting – from $3 / month
- Domains – from $0.82 / year
- Linux VPS & Windows VPS – from $8.99 / month
- SSL certificates – free
- Official website – https://fozzy.com
Join our community!
Facebook – https://www.facebook.com/fozzyhosting
YouTube – https://www.youtube.com/fozzyinc
Vkontakte – https://vk.com/fozzyru
|