diff --git a/README.md b/README.md index c311111..3495217 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,17 @@ On linux, ctrl+shift+u, then, while holding To generate an SSH key with the correct comment and type run: ```bash -KEYGEN_USER=myuser -KEYGEN_HOST=something.com -ssh-keygen -C ${KEYGEN_USER}@{KEYGEN_HOST} -f ~/.ssh/id_${KEYGEN_HOST} -t ed25519 +export KEYGEN_USER=myuser +export KEYGEN_HOST=something.com +ssh-keygen -C ${KEYGEN_USER}@${KEYGEN_HOST} -f ~/.ssh/id_${KEYGEN_HOST} -t ed25519 + +cat <> ~/.ssh/config +Host ${KEYGEN_HOST} + Hostname ${KEYGEN_HOST} + IdentityFile ~/.ssh/id_${KEYGEN_HOST} + User ${KEYGEN_USER} + Port 22 +EOF ``` ## Important Dates and Times