Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-24-2007, 07:41 PM   #1
LQ Newbie
Registered: Aug 2007
Location: Sacramento, CA
Posts: 1

Rep: Reputation: 0
Unhappy 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.

Old 08-25-2007, 12:13 PM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
your $PATH is probably wrong. either set it early in the script, or use the full path to ssh-keygen.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 03:50 AM
How to ssh-keygen? Baran Linux - Networking 5 04-26-2005 03:40 PM
ssh-keygen problem mijohnst Linux - Networking 5 07-20-2004 02:00 PM
ssh-keygen run time fatman Linux - Software 5 01-11-2004 01:34 PM
sftp and ssh-keygen help please grayhost Linux - Newbie 2 06-26-2003 06:51 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration