ssh: add github ssh key config and setup script

This commit is contained in:
servostar 2024-11-24 14:39:31 +01:00
parent b6f9084a0b
commit 7fe1191283
3 changed files with 17 additions and 0 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
# Ignore SSH known hosts
known_hosts
known_hosts.old
# Ignore SSH keys since they are stored and managed by
# the Yubikey.
id_ed25519_sk_rk_*

4
.ssh/config Normal file
View File

@ -0,0 +1,4 @@
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519_sk_rk_servostar@github.com

7
run-setup-ssh.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
# Retrieve key from Yubikey
echo "==> Getting keys from Yubikey..."
cd .ssh
ssh-keygen -K