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?

More than 3 years have passed since last update.

awsデプロイ scpコマンド

Posted at

AWS,Docker 困ったこと

現状

https://qiita.com/at-946/items/1e8acea19cc0b9f31b98
このサイトを参考にDocker EC2でrailsアプリのデプロイを試みましたが、

$ scp -i ~/.ssh/myapp.pem ~/myapp/config/master.key myuser@xxx.xxx.xxx.xxx:./myapp/config/

scpコマンドでmaster.keyをリモートに送ろうとしましたがエラーが出ました。

scp: /master.key: Permission denied

エラーメッセージです。

調べるとサーバーにkeyを設定する必要があるとのことなのでやってみましたが、結果は同じでした。

解決方法

myuserでの権限がなかった。

$ ls -l 

確認方法

権限の変え方

$ sudo chown -R myuser:myuser myapp
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?