From 51bc78aed265eeb158566af64f85ab9d050cd679 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Tue, 18 May 2021 00:41:08 +0200 Subject: [PATCH] ssh: added ssh key login --- wiki/linux/ssh.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wiki/linux/ssh.md b/wiki/linux/ssh.md index 53d5386..6c18156 100644 --- a/wiki/linux/ssh.md +++ b/wiki/linux/ssh.md @@ -6,3 +6,9 @@ SSH is a network protocoll to securely connect to a computer. Edit the `/etc/ssh/sshd_config` and change the line containing `PermitRootLogin` to `PermitRootLogin yes`. + +## Add login via SSH public key + +To enable easy login without password you can add the contents of the file +`~/.ssh/id_rsa.pub` from your local machine to the file `~/.ssh/authorized_keys` +on the machine you want to log into.