Amazon AWS/EC2: Difference between revisions
From Bibliotheca Anonoma
Antonizoon (talk | contribs) (Created page with "== Accessing Instance == You must change permissions of the key pair to 400. <pre>chmod 400 /path/my-key-pair.pem ssh -i /path/my-key-pair.pem [email protected]...") |
Antonizoon (talk | contribs) No edit summary |
||
Line 17: | Line 17: | ||
<blockquote>If you compromise your private key everything is f***ed anyway. | <blockquote>If you compromise your private key everything is f***ed anyway. | ||
</blockquote> | </blockquote> | ||
== Sources == | == Sources == |
Revision as of 20:49, 30 January 2018
Accessing Instance
You must change permissions of the key pair to 400.
chmod 400 /path/my-key-pair.pem ssh -i /path/my-key-pair.pem [email protected]
Add Users
http://stackoverflow.com/questions/3260739/add-keypair-to-existing-ec2-instance
pam_ssh
Another handy thing to do is single-sign on. Now that you've authenticated once with your SSH private key, you might as well have it authenticate the password anyway, so you don't have to type it in yet again for sudo.
If you compromise your private key everything is f***ed anyway.