LoginSignup
0
0

More than 1 year has passed since last update.

MacでEC2インスタンスにSSH接続する方法

Posted at

1.Ec2インスタンス起動

2.sshフォルダ作成

3.下記コマンドで権限を600に変更
chmod 600 ○○.pemのパス名

4.ssh接続
ssh -i ○○.pemのパス名 ec2-user@パブリックIPアドレス

下記のような表示が出ればログイン成功です

__|  __|_  )
       _|  (     /   Amazon Linux AMI
      ___|\___|___|

https://aws.amazon.com/amazon-linux-ami/2018.03-release-notes/
15 package(s) needed for security, out of 22 available
Run "sudo yum update" to apply all updates.
[ec2-user@ip-10-0-0-54 ~]$

参考

AWSのEC2にmacからSSHする方法
https://qiita.com/nakm/items/695e41d8e71d0d281ac4

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