Deploy public key to remote server

Append your public key to the server's authorized_keys with correct permissions. Paste the full ssh-ed25519 line.

Appends your public key to the server's ~/.ssh/authorized_keys file, enabling passwordless SSH login. The public key (.pub) is safe to share; never copy the private key.

When you need this: After generating an SSH key pair, to authorize your machine to connect to a remote server.

Variables

Command


        
2 views 0 copies
Log in to rate
Log in to save

Free account — save snippets into your own collections.