AWS EC2 우분투14 authorized keys

1 개요[ | ]

AWS EC2 우분투14 authorized_keys
/root/.ssh/authorized_keys
/home/ubuntu/.ssh/authorized_keys
  • root와 ubuntu 계정의 RSA키는 동일하므로 같은 pem 파일로 로그인 가능
  • 단 root의 경우에는 다음과 같은 메시지를 표시하고 접속이 끊어짐
Please login as the user "ubuntu" rather than the user "root".

2 내용[ | ]

  • /root/.ssh/authorized_keys
ubuntu@ip-172-31-3-57:~$ sudo cat /root/.ssh/authorized_keys
no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command="echo 'Please login as the user \"ubuntu\" rather than the user \"root\".';echo;sleep 10" ssh-rsa ACEGI3KzbC5yc7EAAAADAQABAAABAQCCNq9S1wYGFQl/SSWl4B1/N7YLUDwSlhBYp6hz+qs8pNsV4nZdVwR0ZihrE2aJifXi5kqF79DZXM136ZSUI8iwkwl+uZbqqkH11qESid7JiAJ+JXXQEnT7K3Hiw57xFWgp78FiTrD/qxkYNawqiO00kr6LNNdNqQ5Mwx/m+SY2Jhl//GWnOam/UfXCnwjRL20MuGfpd3ikYYNP3+xgr0HCv3VGBH7CSg8jEPNX+PdPf94fAa7fpOobDKynk5MIU++SW/YzIEykG14tHMitJvTieR5KoQt6/UG585otDRCVBq/m0II5j28HteY6ZOGEaXTYHNopgFiKPoQvJQ64gIB3 mykey1
  • /home/ubuntu/.ssh/authorized_keys
ubuntu@ip-172-31-3-57:~$ cat /home/ubuntu/.ssh/authorized_keys 
ssh-rsa ACEGI3KzbC5yc7EAAAADAQABAAABAQCCNq9S1wYGFQl/SSWl4B1/N7YLUDwSlhBYp6hz+qs8pNsV4nZdVwR0ZihrE2aJifXi5kqF79DZXM136ZSUI8iwkwl+uZbqqkH11qESid7JiAJ+JXXQEnT7K3Hiw57xFWgp78FiTrD/qxkYNawqiO00kr6LNNdNqQ5Mwx/m+SY2Jhl//GWnOam/UfXCnwjRL20MuGfpd3ikYYNP3+xgr0HCv3VGBH7CSg8jEPNX+PdPf94fAa7fpOobDKynk5MIU++SW/YzIEykG14tHMitJvTieR5KoQt6/UG585otDRCVBq/m0II5j28HteY6ZOGEaXTYHNopgFiKPoQvJQ64gIB3 mykey1

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}