SSH keys added via our VPS control panel are automatically injected into VPS at first installatoin or Rebuild without the need of an manual setup.

Add SSH Key

1. Login into the VPS control panel
2. In the top menu click on SSh Keys and than Add Key
3. Give the key a name and paste your public SSH key into the field Public Key (do NOT paste your private key into that field!)
4. Save

Rebuild your server

During the Rebuild you can choose which SSH key you want to inject. The selected keys will be automatically added to /root/.ssh/authorized_keys on your new system.

SSH Key already in the control panel but SSH keeps asking for a password

In this case the key was added after the VPS installation. The key injection process runs only during the initial setup or the Rebuild.

Manually add your key

You have 2 options to add your SSH key to your VPS manually

1. From your computer copy SSH key to the VPS
ssh-copy-id root@SERVER_IP
 
2. Manually
cat ~/.ssh/id_ed25519.pub | ssh root@SERVER_IP "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"

 

這篇文章有幫助嗎? 0 用戶發現這個有用 (0 投票)