1. Using commands
Ssh-i KEY.PEM [Server]
As follows:
Ssh-i Key.pem [email protected]
2, after executing the above command will prompt you to confirm whether to continue, enter Yes to continue, and then may prompt an error
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ warning:unprotected PRIVATE KEY file! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0770 for '/users/**/workspace/key.pem ' is too open.
It is required this your private key files are not accessible by others.
This private key would be ignored.
Bad Permissions:ignore key: '/users/**/workspace/key.pem '
Permission denied (PublicKey).
The problem is that the permissions for this file are too big to be given to small dots
So just do it:
sudo chmod Key.pem
Then execute ssh-i KEY.PEM [email protected].
3, the most convenient or use Ssh-add to add a key file, later access to convenient points
Ssh-add-k Key.pem
4, after the execution of the above command, the next time just like the normal SSH access can be, as follows:
SSH [email protected]
Amazon key Login on Mac