From 9cc143c28f0e4c799be71328d8d714ee2acdd80c Mon Sep 17 00:00:00 2001 From: Reisber <163213918+Reisber@users.noreply.github.com> Date: Sun, 1 Feb 2026 20:43:03 +0300 Subject: [PATCH] Adding ssh_key to a server --- linux/ssh_key | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 linux/ssh_key diff --git a/linux/ssh_key b/linux/ssh_key new file mode 100644 index 0000000..c8ab204 --- /dev/null +++ b/linux/ssh_key @@ -0,0 +1,9 @@ +###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/ +(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 +And don't forget to restart ssh and sshd