From d9ab615d56c5998165797d7fd16ae7e03a8865f4 Mon Sep 17 00:00:00 2001 From: srdusr Date: Sun, 4 Jun 2023 15:10:59 +0200 Subject: Info about generating ssh keys --- linux/arch-install.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linux') diff --git a/linux/arch-install.md b/linux/arch-install.md index a33154b..1de69ec 100644 --- a/linux/arch-install.md +++ b/linux/arch-install.md @@ -19,6 +19,10 @@ `# vim /etc/ssh/sshd_config` - Reload the sshd daemon on the remote machine `# pkill sshd && /usr/bin/sshd` + - Generate keys + `# ssh-keygen A` + `# ssh-keygen` + > NOTE: No need to enter passphrase unless desired. - OpenSSH has a utility to send the key remotely to either machine, only use the `-p` flag if specifying a `` to use `$ ssh-copy-id -p -i ~/.ssh/id_rsa.pub user@ip.address` > NOTE: Working out which `` to use (default is usually 22) might also require trial and error dependent on remote/local configurations. Some commands to check current active ports: `lsof -Pi | grep ssh` and `netstat -lntu`. -- cgit v1.2.3