srdusr
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2023-06-04 15:10:59 +0200
committersrdusr <[email protected]>2023-06-04 15:10:59 +0200
commitd9ab615d56c5998165797d7fd16ae7e03a8865f4 (patch)
tree183a41865db3d3b7c23082ced68cd4283557136d
parent7821b46b358f4c2dcf80893021916ea8469ccf8d (diff)
downloadnotes-d9ab615d56c5998165797d7fd16ae7e03a8865f4.tar.gz
notes-d9ab615d56c5998165797d7fd16ae7e03a8865f4.zip
Info about generating ssh keys
-rw-r--r--linux/arch-install.md4
1 files changed, 4 insertions, 0 deletions
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 `<port>` to use
`$ ssh-copy-id -p <port> -i ~/.ssh/id_rsa.pub [email protected]`
> NOTE: Working out which `<port>` 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`.