Re: ssh-keygen empty passphrase



On 9 Nov, 11:56, gerry.bren...@xxxxxxxxx wrote:
Hi I have a ksh script.
with the following line for generating some keys

ssh-keygen -q -t dsa -f /.ssh/id_dsa << EOF


EOF

Also I have two machines with

ssh -V

A.........SSH Version Sun_SSH_1.0, protocol versions 1.5/2.0.

B.........Sun_SSH_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090700f

When I run the script on A I do not have to press enter twice.

"Enter passphrase(empty for no passphrase):
Enter same passphrase again:"

When I run the script on the second machine I have to press return
twice.

"Enter passphrase(empty for no passphrase):
Enter same passphrase again:"

Obviously, from line instruction above I do not want to enter
twice ...

Why is one version suppressing this and the other not ?

Any help would be great .
G


.



Relevant Pages

  • ssh-keygen empty passphrase
    ... Also I have two machines with ... When I run the script on A I do not have to press enter twice. ... "Enter passphrase(empty for no passphrase): ...
    (comp.security.ssh)
  • Re: SSH login automation, get stuck at the last step.
    ... I hope you managed to create the keys with the script. ... I have modified Uwe's script to handle passphrase. ... puts stderr "EXP username requested and sent " ...
    (comp.lang.tcl)
  • Re: scp and scripts?
    ... The following is basically what I want the script to do, ... >> but I heard scp will not work with authentication. ... > an SSH key of the appropriate type. ... > want a passphrase; press enter to use a blank passphrase. ...
    (Debian-User)
  • Re: scp in a script with keys and passphrase
    ... Expect can automate task of typing passphrase in a expect script - but ask yourself a question what good is the passphrase if you have to store it in clear text? ... scp in a script with keys and passphrase ... Expect is a tcl extension for automating interactive applications such ...
    (RedHat)
  • RE: scp in a script with keys and passphrase
    ... the "expect" package may be what you're looking for. ... Expect is a tcl extension for automating interactive applications such ... scp in a script with keys and passphrase ... passphrase in a script to scp from one computer to another. ...
    (RedHat)