SSH Es un protocolo para conectarnos a servers desde nuestra maquina local.
$ ssh -V
$ which ssh
El comando ssh-keygen nos permite generar llaves publicas y privadas en nuestro so para conectarnos remotamente o permitir que otros se conecten a nuestra maquina
ssh-copy-id moves the public key file specified with -i ~/.ssh/<public_key_file> from your computer to . It will be stored in the file ~/.ssh/authorized_keys in the directory of .
// Generate keys
$ ssh-keygen -b 4096
// Move the public key to the remote machine
$ ssh-copy-id -i id_rsa.pub [email protected]
// ssh -i [Nombre de la llave] [usuario]@[ip del servidor]
$ ssh -i ederrafo.pem [email protected]
Your key file must not be publicly viewable for SSH to work. Use this command if needed: chmod 400 mykey.pem
$ chmod 400 mykey.pem