4 ms·
I use this for my desktops but does it also work if you only have a console?
by chopin 7y ago
I use this for my desktops but does it also work if you only have a console?
- mschuster91 7y agoYes, ssh-agent can also work in a terminal-only environment. Specify "ssh-agent add" in your .bashrc and you're all set.
- johnisgood 7y agoIt even works with GnuPG! You will need to create ~/.gnupg/sshcontrol[1], then run: $ export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) $ gpg-agent --enable-ssh-support If you get an error[2] when you are trying to ssh into a machine, you may need: $ gpg-connect-agent updatestartuptty /bye > /dev/null For information as to how to create an authentication subkey: https://www.gniibe.org/memo/software/gpg/keygen-25519.html https://www.gniibe.org/memo/software/gpg/keygen-25519.html [1] You need to add your authentication subkey's keygrip which you can get using: gpg --list-keys --with-keygrip or the like. Separate the keygrips with a newline, and IIRC you need to have a newline at the end of the file as well. [2] For example: "sign_and_send_pubkey: signing failed: agent refused operation".