From 3548b2bb0ed59cb3dd9cb69bd8fffdf5160a7dcd Mon Sep 17 00:00:00 2001 From: Reisber Date: Thu, 12 Feb 2026 22:47:02 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20linux/ssh=5Fkey.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux/{ssh_key => ssh_key.md} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename linux/{ssh_key => ssh_key.md} (81%) diff --git a/linux/ssh_key b/linux/ssh_key.md similarity index 81% rename from linux/ssh_key rename to linux/ssh_key.md index aa20ca3..477f1b5 100644 --- a/linux/ssh_key +++ b/linux/ssh_key.md @@ -1,11 +1,11 @@ ###How to add SSH key to server After setting up first remote ssh connection type from your PC (not server) -scp C:\Users\User.ssh*.pub user@hostname:/home/user/ +` scp C:\Users\User.ssh*.pub user@hostname:/home/user/ ` (example: C:\Users\user*\.ssh\id_ed25519.pub user@ip_address_of_the_host:/home/) Then enter password, after that > Go to your server and add your key, to ssh_authorized keys > -cat id_ed*.pub >> ~/.ssh/authorized_keys +`cat id_ed*.pub >> ~/.ssh/authorized_keys ` And don't forget to restart ssh and sshd Use this is password authentication still works (nano /etc/ssh/sshd_config.d/50-cloud-init.conf)