From 7f35a8ac68f8e3c7d8ff238269b472adb6489b80 Mon Sep 17 00:00:00 2001 From: YIk Teng Hie Date: Mon, 24 May 2021 10:15:12 +0800 Subject: [PATCH] ssh-copy-id --- ubuntu/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ubuntu/README.md b/ubuntu/README.md index 8ffbb9b..8ad1ace 100644 --- a/ubuntu/README.md +++ b/ubuntu/README.md @@ -79,3 +79,16 @@ $ sudo apt-get remove nodejs $ sudo apt autoremove ``` +* ssh id + +```shell +$ ssh-keygen + +// copy ssh public key to host .ssh/authorized_keys to allow passwordless ssh +$ ssh-copy-id -i abc@host + +// alternatively, copy local .ssh/rsa_id.pub content into target server authorized_keys + + +``` +