Skip to content


sudo apt install ssh-import-id
mkdir ~/.ssh
curl -o ~/.ssh/
chmod 644 ~/.ssh/
lpass show ssh --attach=att-4322045537695550419-20689 -q > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
cp ~/.ssh/ ~/.ssh/authorized_keys
chmod 0700 ~/.ssh
ssh-import-id-gh nicholaswilde


# /etc/ssh/sshd_config
RSAAuthentication yes
PubkeyAuthentication yes

Verify that Keys Match

Use the following command, to test both files. The output of the command will show the 'signature' of both files. When the 'signature' matches, they show the public key and private key are both valid and match.

# ssh-keygen -l -f ~/.ssh/id_rsa
2048 SHA256:REDACTED [email protected] (RSA)

# ssh-keygen -l -f ~/.ssh/
2048 SHA256:REDACTED [email protected] (RSA)