update ssh config

This commit is contained in:
Daniel Langbein 2023-09-11 13:06:20 +02:00
parent 89ac6a39e8
commit 92cbf33aa0

View File

@ -16,6 +16,8 @@
# Restart gpg-agent after config change. # Restart gpg-agent after config change.
# Otherwise there might be a gpg error about "no pinentry". # Otherwise there might be a gpg error about "no pinentry".
# https://discourse.nixos.org/t/cant-get-gnupg-to-work-no-pinentry/15373/19 # https://discourse.nixos.org/t/cant-get-gnupg-to-work-no-pinentry/15373/19
# But how to restart it? Maybe this?
# systemctl --user restart gpg-agent
# Not sure if this is needed: Reload udev rules. # Not sure if this is needed: Reload udev rules.
# sudo -- udevadm control --reload-rules && udevadm trigger # sudo -- udevadm control --reload-rules && udevadm trigger
@ -51,7 +53,7 @@
# systemctl --user stop gpg-agent-ssh.socket # systemctl --user stop gpg-agent-ssh.socket
# ps -aux | grep -v grep | grep gpg-agent # ps -aux | grep -v grep | grep gpg-agent
# => NONE # => NONE
# eval $(gpg-agent --daemon --pinentry-program /nix/store/8cvidvpwnwyxixlhqfaa5jlfndh2vir5-pinentry-1.2.1-curses/bin/pinentry --enable-ssh-support --sh) # eval $(gpg-agent --daemon --pinentry-program /nix/store/5j87jnmfh19xlq9ij0v3rh7cwssr4586-pinentry-1.2.1-curses/bin/pinentry --enable-ssh-support --sh)
# echo $SSH_AUTH_SOCK # echo $SSH_AUTH_SOCK
#=> /run/user/1000/gnupg/S.gpg-agent.ssh #=> /run/user/1000/gnupg/S.gpg-agent.ssh
# gpg -d ./passphrase.txt.gpg # gpg -d ./passphrase.txt.gpg
@ -102,9 +104,12 @@
user = "yoda"; user = "yoda";
port = 2222; port = 2222;
compression = true; compression = true;
};
#identityFile = "pubkey_nitrokey_ssh.pub"; "rootnas" = {
#identitiesOnly = true; hostname = "p1st.de";
user = "root";
port = 2222;
compression = true;
}; };
}; };
}; };