need help automating ssh-keygen
I'm writing a script that will run ssh-keygen and I'd like to use expect to automate this part of the script. But whenever I spawn ssh-keygen I get a "command not found" error. If I don't use the spawn command to run ssh-keygen then it works fine but I can't figure out how to send a carriage return to ssh-keygen (since I'm accepting all defaults for ssh-keygen).
Any ideas, tips, hints or tricks would be greatly appreciated. TIA, Jennifer |
your $PATH is probably wrong. either set it early in the script, or use the full path to ssh-keygen.
|
All times are GMT -5. The time now is 12:07 PM. |