MAC login via SSH using PEM file
1. The command is as follows
ssh -i key.pem ssh -i key.pem root@IP
If there is an error, it means that the problem is that the permissions of the file are too large, and you need to give a little more
1
|
sudo chmod 600 key.pem
|
1
|
然后再执行ssh -i key.pem root@IP
|
2. You can use ssh-add to add key files
1
|
ssh-add -k key.pem
|
3. Log in to the bastion machine normally
1
|
ssh root@IP
|
1. The command is as follows
ssh -i key.pem ssh -i key.pem root@IP
If there is an error, it means that the problem is that the permissions of the file are too large, and you need to give a little more
1
|
sudo chmod 600 key.pem
|
1
|
然后再执行ssh -i key.pem root@IP
|
2. You can use ssh-add to add key files
1
|
ssh-add -k key.pem
|
3. Log in to the bastion machine normally
1
|
ssh root@IP
|