How to Add an SSH Key to Your Hosting Account
Once you've generated an SSH key pair, you can upload your public key to your dotCanada account to enable password-free, secure SSH logins.
Adding Your Key in cPanel
- Log in to your cPanel account.
- Navigate to Security > SSH Access.
- Click Manage SSH Keys.
- Click Import Key.
- Give your key a name (e.g.,
my_laptop). - Paste the contents of your public key file (
id_rsa.pub) into the Public Key field. You can get its contents by running:cat ~/.ssh/id_rsa.pub - Click Import.
Authorizing the Key
- After importing, return to the Manage SSH Keys page.
- Find your key under Public Keys and click Manage.
- Click Authorize to enable it.
Testing Your Connection
Once authorized, test your key-based login by running: ssh -i ~/.ssh/id_rsa username@yourdomain.com
If everything is set up correctly, you'll connect without being asked for a password. You can also set up your ~/.ssh/config file to simplify future connections.
If you're having trouble getting your key authorized or connecting, contact our support team and we'll be happy to help.
100% Satisfaction Guarantee
We're so confident you'll love dotCanada that we offer a 30-day money-back guarantee. Not satisfied? Get a full refund, no questions asked.
Ready to Get Started?
Join thousands of Canadian website owners who trust dotCanada for reliable, fast web hosting.
Get Started Today
