本文へスキップ

ガイド · VPS

SSH 鍵で接続

鍵を作成 → ストアの SSH 鍵タブに公開鍵。

1. Create a key (on your PC)

Same command in Windows PowerShell or Mac Terminal:

ssh-keygen -t ed25519

Press Enter three times (default path · no passphrase), or set a key passphrase.

PCShow public key
Windowstype $env:USERPROFILE\.ssh\id_ed25519.pub
Mac · Linuxcat ~/.ssh/id_ed25519.pub

ssh-ed25519 AAAA… is the start of your single-line public key. Never share the file without .pub (private key).

2. Add it in the store

  1. Service page → SSH keys → Name (optional) · paste Public key → Add key.
  2. Applied immediately when running. If off: Pending → applied when started.
  • Stored in /root/.ssh/authorized_keys. Lines added manually on the server stay.
  • You can also add a public SSH key when ordering or reinstalling.

3. Connect

ssh root@PUBLIC_IP

You should connect without entering the server password.

4. Disable password login (optional)

Verify key login first. Keep the current session open while making this change.

  1. nano /etc/ssh/sshd_config.d/00-vps.conf
  2. Change these two lines:
    PermitRootLogin prohibit-password
    PasswordAuthentication no
  3. Apply: Ubuntu · Debian systemctl restart ssh · Rocky · CentOS systemctl restart sshd.
  4. Verify ssh root@PUBLIC_IP works in a new window.

If you lose the key, use your password in the service page's web Console.

すべてのガイド VPS プラン お問い合わせ