AWS EC2 accpet
- OpenSSH public key format (PEM)
- Base64 encoded DER format
- SSH public key file format, e.g.
~/.ssh/id_rsa.pub
ssh-keygen
ssh-copy-id user@remotehost
/ect/ssh/sshd_config
- on remote server
- store the client’s public keys after authroized
- per user;
- if no permission, need admin to add your public key to this file (cat ~/id_rsa.pub >> ~/.ssh/authorized_keys)
- on client side
- store DSA host keys of servers
- tell what SSH servers you have accessed
- user’s ssh client config /etc/ssh/ssh_config
- system wide ssh client config
ssh-keygen -y -f ~/.ssh/id_rsa
ssh-keygen -l -f id_rsa.pub
ssh-keygen -f ~/.ssh/id_rsa.pub -e -m pem
ssh-rsa AAAAB3NzaC1yc2EAAAoDvNoNCxSZX8WR9ACVMQ7nvQ62RrSMZlRtJP37Yqyl8wlNXdBoDnFhabzqs my@emaildomain.com
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEAw4hCsXawUb8kMoASzshh4uxNFArnqwZxVHNb65lN7J0FqA7zaDQs
UmV/FkfQAlTEO570Otka3QaA5xYWm86rBPxRS8f9Uc2/c
x36xewz1vlS7XVS6zDsCAwKBSGCBtv65u64tI2sj5
-----END RSA PUBLIC KEY-----