From 0de2bb0d6565c869812b992e10c95df827ba9322 Mon Sep 17 00:00:00 2001 From: Asocia Date: Fri, 14 May 2021 17:17:54 +0300 Subject: [PATCH] TIL: Using a public key to login --- ssh/using_a_public_key_to_login.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ssh/using_a_public_key_to_login.md diff --git a/ssh/using_a_public_key_to_login.md b/ssh/using_a_public_key_to_login.md new file mode 100644 index 0000000..90c5b44 --- /dev/null +++ b/ssh/using_a_public_key_to_login.md @@ -0,0 +1,13 @@ +You can generate authentication keys and use it with ssh to login. First run the below command if you don't have any (it won't overwrite if you already have one): + +``` +ssh-keygen +``` + +Then copy your public key to remote server with this: +``` +ssh-copy-id name@host +``` + +From now on, you should be able to login with `ssh name@host` without having to enter your password. +