Re: trying to use SCP with <<EOF



On 12 Jun, 09:01, fearban <Fear...@xxxxxxxxx> wrote:
Hi,

I am running an scp command from a script

scp ~/.ssh/authorized_keys user@owl:~/.ssh/authorized_keys << EOF
yes
EOF

But it is still asking me for the response.

The authenticity of host '192.168.5.28' can't be established.
RSA key fingerprint in md5 is: e6:87:00:d5:20:35:51:4e:97:9a:62:41:cd:
46:4c:30
Are you sure you want to continue connecting(yes/no)?

Can anyone help

GB

A little background .................


Am developing an automated script to generate ssh (pub private) keys.
When completed ... then copy the public key to the remote machine
using scp .....

During this scp i get .....

The authenticity of host '192.168.5.24' can't be established.
RSA key fingerprint in md5 is: e7:88:0jj:d5:20:35:51:4e:97:9a:62:41:cd:
46:4c:30
Are you sure you want to continue connecting(yes/no)?

I am using The << EOF
yes
EOF in the script.

But does not work.

Any Ideas.

Is there a way to supress asking the question


.



Relevant Pages