LoginSignup
0
0

More than 5 years have passed since last update.

AmazonEC2間で鍵なしrootログインができるようにする

Posted at

目的

ansibleを実行する際等、AmazonEC2間のrootユーザでのログインを簡単にする。

作業内容

  • rootでログインする元のサーバ上で、鍵を生成(rootユーザで実行)
ssh-keygen -t rsa
# 対話部分は全て何も入力せずにEnter
  • rootでログインする元のサーバのid_rsa.pubを、ログイン先のサーバのautherized_keysに転記
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