¿Cómo agrego nuevas cuentas de usuario con acceso SSH a mi instancia Amazon EC2 Linux?

ssh -i "prueba.pem" ubuntu@ec2-54-167-187-1xx.compute-1.amazonaws.com
adduser developer
root@ip-20-0-2-104:/home/ubuntu# sudo usermod -aG sudo developer
root@ip-20-0-2-104:/home/ubuntu# sudo su - developer
developer@ip-20-0-2-104:~$ mkdir .ssh
developer@ip-20-0-2-104:~$ chmod 700 .ssh
touch .ssh/authorized_keys
MacBook-Air-de-Lorena-4:llaves lorenaocampo$ chmod 400 keypar-developer.pem
MacBook-Air-de-Lorena-4:llaves lorenaocampo$ ssh-keygen -yEnter file in which the key is (/Users/lorenaocampo/.ssh/id_rsa): /Users/lorenaocampo/Downloads/llaves/keypar-developer.pemssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDnmtUwJM8AupAsAHrPFVp51vbRj1kRWU6hR/ZrIXxiWY0Yzcg2seQ0mCIeZK5BjG86q2pi0U5YdGlPckCDfqF+W6wvZNRgg4LRYRUelX0ue/TckF11mpY1YcPKxXQjdpY0DC1aU5l8C4Rd+Gyk5dXMTV6giy2MaWIK/I4JEY/vAVvbd/gefCiwzg+I8tyo4dZ0EBAuV1e3B9iUtjxoI2XNXhqOUC/DzQ5dJWXqfprGPN/cNT5DIgcTJaeDAH/Iz+clIa06biG4c5+gIP6fRKwukupalgjpXBvDU4v57iXQ8fUOO+VBNGWHtIckifJ01KnHJQXV905AbWWilxyAKtfL
developer@ip-20-0-2-104:~/.ssh$ vim authorized_key

--

--

--

Entrepreneur, travel lover, AWS x3, CIO High Cloud Tec , AWS Community Builder, passionate about cloud learning

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Oscar Ivan Ocampo

Oscar Ivan Ocampo

Entrepreneur, travel lover, AWS x3, CIO High Cloud Tec , AWS Community Builder, passionate about cloud learning

More from Medium

Amazon SNS — One to Many app interactions

Working with AWS SQS FIFO Queues

How to host a static website on AWS with S3, CloudFront, Route53 and Terraform — Interweave

EMQX + NLB (AWS) + EKS — Preserve Client IP