
AWS Lambdaに入門した話
駆け出しアラサーSEが、休日にMACと戯れた際の殴り書きメモ。日々勉強。日々進歩。
公開日:2018-05-04 更新日:2020-10-02
Macを新しくしたのでaws接続環境の整備。
keyを持ってきて接続しようとするとエラーが出た。
[yoshi@18-05-03T21:17:13] ~/aws_work % ssh -i hogehoge.pem -l user x.x.x.x The authenticity of host 'x.x.x.x' can't be established. ECDSA key fingerprint is . Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'x.x.x.x' (ECDSA) to the list of known hosts. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for 'hogehoge.pem' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "hogehoge.pem": bad permissions user@x.x.x.x: Permission denied (publickey). [yoshi@18-05-03T21:17:50] ~/aws_work %
keyファイルのパーミッションは600にしないといけないとのことなので修正して晴れて接続できた。
[yoshi@18-05-03T21:19:36] ~/aws_work % chmod 600 hogehoge.pem [yoshi@18-05-03T21:20:10] ~/aws_work % ssh -i hogehoge.pem -l user x.x.x.x Last login: Sat Apr 14 07:43:33 2018 from x.x.x.x __| __|_ ) _| ( / Amazon Linux AMI ___|\___|___|