From 3d0ad3af024b0ff23faa3ee274460b875827f185 Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 26 Apr 2024 09:29:45 +0200 Subject: [PATCH] added sshkey page --- setupSshKeys.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 setupSshKeys.md diff --git a/setupSshKeys.md b/setupSshKeys.md new file mode 100644 index 0000000..fc8ea82 --- /dev/null +++ b/setupSshKeys.md @@ -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 +``` + +Step3: +edit ~/.ssh/config. +Add the following lines +``` +Host + HostName + User + IdentityFile + IdentitiesOnly yes + +``` + +You should be able to login now.