connecting to amazon aws linux server by ssh on mac

后端 未结 5 1001
走了就别回头了
走了就别回头了 2021-01-30 02:37

I created a new keypair and downloaded it to my mac, then set up a new Amazon Linux AMI server with that keypair and my security group. Now I need to put the keypair .pem file t

5条回答
  •  时光取名叫无心
    2021-01-30 03:13

    you can also create a file ~/.ssh/config chmod it 644 then inside you can add something like this

    host mybox-root
      Hostname [the IP or dns name]
      User root
      IdentityFile ~/.ssh/[your keypair here]
    

    then you can just do

    $ ssh mybox-root

    and you'll login easier.

提交回复
热议问题