1
1

More than 1 year has passed since last update.

簡単にSSHでAWSサーバーに接続する方法

Last updated at Posted at 2021-10-18

SSH を使用して接続するには

macはターミナル、winの場合はTera Termを使います。

まずはpemファイルの権限の変更が必要です。
600が推奨されてます。フル権限だとエラーが出ます。

ターミナル
chmod 600 /path/to/my-key-pair.pem

chmodコマンドで権限を変更します。

その後、下記のsshコマンドでアクセス出来ます。

ターミナル
ssh bitnami@xxx.xxx.xxx.xxx -i /path/to/my-key-pair.pem

簡単に説明すると、
ssh ユーザ@サーバIP -i pemファイルのパス

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