Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh key selection #6

Open
jasherai opened this issue Mar 14, 2011 · 3 comments
Open

ssh key selection #6

jasherai opened this issue Mar 14, 2011 · 3 comments

Comments

@jasherai
Copy link

Scenario: You have multiple existing keys, but don't specify one on the commandline

Requested feature: Give you a choice of keys to use for this host (perhaps even the choice to create one specifically for this host? )

The creation of new keys could even be extended to create a single purpose key using COMMAND="XYZ" <--key --> on the remote box.

Opinions?

@mattwynne
Copy link
Owner

Sounds useful. Care to submit a patch?

@jasherai
Copy link
Author

I'll definitely look into it :)

@hedgehog
Copy link
Contributor

I think the changes in my pull request implement this:

Say key A exists, as ~/.ssh/id_rsa_a:

ssh-forever hedge@desktop -p 22 -i ~/.ssh/id_rsa_a -n cuken -a -q

Should not create a new key, but will add to your ~/.ssh/config

Host cuken
  HostName desktop
  User hedge
  PreferredAuthentications publickey
  IdentityFile /home/hedge/.ssh/id_rsa_a
  StrictHostKeyChecking false
  HostKeyAlias cuken

Let me know if that is what you had in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants