ccontavalli / ssh-ident

Different agents and different keys for different projects, with ssh.
Other
963 stars 71 forks source link

How to trigger password input at login / startup #67

Open trallnag opened 2 years ago

trallnag commented 2 years ago

I want to load a key into the ssh-agent at startup. Can I do that with ssh-ident?

Using something like ssh-keygen -y -f ~/.ssh/id_ed25519 does not work

maddes-b commented 2 years ago

Please read the OpenSSH manual and look for ssh-keygen, ssh-agent and ssh-add. By the way ssh-ident is loading the keys on-demand just define them correctly (see README). The fork at https://github.com/ssh-ident/ssh-ident1 also allows to use ssh-ident as an ssh-add replacement to explicitly load non-default keys for an identity (see its README). Please close the topic with your result when you got a solution.

maddes-b commented 2 years ago

Please have a look at the fork at https://github.com/ssh-ident/ssh-ident1, just added a functionality (-I) to load all keys for an identity via ssh-add. That can be used inside your user's .profile. Would be nice if you could test it in your environment.