Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Create self-contained SSH key scripts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create self-contained SSH key scripts
Authored by: devlogic on Sep 12, '07 10:21:24AM
Alternately, you can edit ~/.ssh/config to add a stanza like this:

Host chimpy
User bob
IdentityFile /Users/bob/.ssh/id_dsa

Then all you need to have in your .command file is (to re-phrase the original example):
# chimpy.command - Logs user bob into chimpy using private
# key
ssh chimpy

It's also more convenient this way if, for example, you've had a security breach and needed to change your SSH keys. If you've got the keys all in one location, it's much easier to just over-write the compromised keys than it is to edit 30 different .command files.

[ Reply to This | # ]