タイトルの通りscpコマンドでサーバのファイルをローカルにコピーしたいのですが、
Warning: Identity file /Users/utan/usfaws.pem not accessible: No such file or directory.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
というエラーが出てコピーできません。
実行したコマンドは下記になります
cmd
1scp -i /Users/dev/userss.pem ec2-user@xx.xxx.xx.xx:/home/ec2-user/file.tar.gz /Users/dev/.
パーミッションのエラーがでたので、
chmod 777 file.tar.gz
を実施しましたが同じエラーになります。
file.tar.gzの所有権はrootになっていて変更していません。
何が悪いでしょうか
回答2件
あなたの回答
tips
プレビュー