Update README.md
This commit is contained in:
14
README.md
14
README.md
@@ -32,9 +32,17 @@ On linux, <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>u</kbd>, 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 <<EOF >> ~/.ssh/config
|
||||
Host ${KEYGEN_HOST}
|
||||
Hostname ${KEYGEN_HOST}
|
||||
IdentityFile ~/.ssh/id_${KEYGEN_HOST}
|
||||
User ${KEYGEN_USER}
|
||||
Port 22
|
||||
EOF
|
||||
```
|
||||
|
||||
## Important Dates and Times
|
||||
|
||||
Reference in New Issue
Block a user