LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-24-2007, 06:41 PM   #1
linxq4u
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.

TIA,
Jennifer
 
Old 08-25-2007, 11:13 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

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


Reply



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 02:50 AM
How to ssh-keygen? Baran Linux - Networking 5 04-26-2005 02:40 PM
ssh-keygen problem mijohnst Linux - Networking 5 07-20-2004 01:00 PM
ssh-keygen run time fatman Linux - Software 5 01-11-2004 12:34 PM
sftp and ssh-keygen help please grayhost Linux - Newbie 2 06-26-2003 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:39 AM.

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