LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   need help automating ssh-keygen (https://www.linuxquestions.org/questions/linux-general-1/need-help-automating-ssh-keygen-579605/)

linxq4u 08-24-2007 06:41 PM

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

AlucardZero 08-25-2007 11:13 AM

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.