0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

SSHパスワードなし接続の設定手順(公開鍵をリモートに転送する)

0
Posted at

SSHパスワードなし接続の設定手順

対象

  • ホスト名: rg40xxv
  • IP: 192.168.11.40
  • ユーザー: root

1. SSH鍵の作成(未作成の場合のみ)

ssh-keygen -t ed25519

2. ~/.ssh/config にエントリ追加

Host rg40xxv
    HostName 192.168.11.40
    User root
    IdentityFile ~/.ssh/id_ed25519
    IdentitiesOnly yes
    StrictHostKeyChecking accept-new

3. 公開鍵をリモートに転送(パスワード入力は1回のみ)

ssh-copy-id -i ~/.ssh/id_ed25519.pub root@192.168.11.40

4. 接続

ssh rg40xxv

以降はパスワード不要で接続可能。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?