Skip to content

Instantly share code, notes, and snippets.

@KefDS
Last active April 29, 2016 04:19
Show Gist options
  • Select an option

  • Save KefDS/37b2c639fa49a0d8a928fbcf3a64cfc9 to your computer and use it in GitHub Desktop.

Select an option

Save KefDS/37b2c639fa49a0d8a928fbcf3a64cfc9 to your computer and use it in GitHub Desktop.

Referrencia SSH

Pasar archivos por ssh

Local -> Server

scp /path/ user@SERVER_IP_ADDRESS:/path/

Server -> Local

scp user@SERVER_IP_ADDRESS:/path/ /path/

Copiar la llave ssh local en el servidor

ssh-copy-id user@SERVER_IP_ADDRESS

After providing your password at the prompt, your public key will be added to the remote user's .ssh/authorized_keys file. The corresponding private key can now be used to log into the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment