SSH key authentication

Generate ssh key

Start ssh agent

Add ssh key

List all used ssh keys

Show public key

Copy key to remote host via ssh

If ssh-copy-id isn’t available on the respektive system, you can use the following snipped:

Add permanent usage of key (SSH Client Configuration)

You can set identity file in ~/.ssh/config as follows:

Add both host names and their identity file as follows:

Temporary access with key

2 thoughts on “SSH key authentication

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.