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上のAmazonLinuxから同じサブネットのLinuxサーバへsshしてみた

Posted at

概要

AWS上に立てたAmazonLinuxサーバから同じサブネット内のサーバへsshできずに困っておりました
キャプチャ.PNG

※私の個人情報が記載されていますが、既に削除しております!

解決方法

早速ですが原因はTeraTermコンソールに表示されている通りです。

TeraTerm.txt
>>Permissions 0644 for '/home/ec2-user/.ssh/ansibleKey.pem' are too open.

キーのアクセス権が足りていないようですね。。。

ですので「ansibleKey.pem」のアクセス権をchmodコマンドで「700」に変更します。

TeraTerm.txt
$ sudo chmod 700 ~/.ssh/ansibleKey.pem

その後、再度ssh接続すると、成功しました!
キャプチャ3.PNG

おわりに

今回は、アクセス権について記載しました。
700、777、600など、いろいろあります。。以下の方の記事がよくまとまっておりますのでリンク張ります
(https://qiita.com/ntkgcj/items/6450e25c5564ccaa1b95)

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?