added sshkey page

erik 2024-04-26 09:29:45 +02:00
parent c6785bc1b0
commit 3d0ad3af02

27
setupSshKeys.md Normal file

@ -0,0 +1,27 @@
# How to setup ssh-keys to authenticte with a linux server
Step1:
create new Key (Skip this step if you want to use an existing key)
```
ssh-keygen
```
Step2:
Upload the Key
```
ssh-copy-id -i <path to key> <user@host>
```
Step3:
edit ~/.ssh/config.
Add the following lines
```
Host <hostname>
HostName <hostname>
User <user>
IdentityFile <path to key>
IdentitiesOnly yes
```
You should be able to login now.