Aman Mathur
Aman Mathur

Reputation: 719

Repeated prompt for option while running SCP script

When I run an SCP script

scp -W Scp\password.txt -P 22 server:/file_location
scp -W Scp\password.txt -P 22 server:/file_location

in command prompt I get the following prompt:

Do you want to trust this new host key and continue connecting?
Please type 'no','once', or 'always':

As I attempt to type first letter of any option above, it keeps on repeating and prompts the same thing.

Please type 'no','once', or 'always':
Please type 'no','once', or 'always':
Please type 'no','once', or 'always':

How can I resolve this?

Upvotes: 0

Views: 419

Answers (1)

Jason
Jason

Reputation: 11

I had this same issue and found that it is resolved by copying and pasting the word you are trying to type in. For me I copied the work always and pasted it into cmd.

Upvotes: 1

Related Questions