LoginSignup
2
2

More than 5 years have passed since last update.

AWSに秘密鍵をSCPで送って使う方法

Posted at

AWSで複数のサーバーを立ち上げて秘密鍵が複数箇所で必要になって困ったのでメモ

  • ローカルの秘密鍵をAWSへSCPで送る
scp -i ~/xxx.pem ~/.ssh/id_rsa ec2-user@xxx:/home/ec2-user
  • パーミッションを念のため再度適切に変更
sudo chmod 400 ~/id_rsa
  • 個人用に使っていたパスワードを他の人も使えるように共通のパスワードに変更
ssh-keygen -p

以上。

2
2
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
2
2