Link to home
Create AccountLog in
Avatar of smovva1
smovva1

asked on

SCP command with no password prompt

I have a perl script that has an SCP command. Its a script that needs to be run on many servers. In most of the servers, the keys are setup and it won't prompt for the password. But, there are few servers where the keys are not setup. On those servers, I don't want it to wait for the password. I want it to simply ignore the SCP and move on.
How can I force it to "timeout" and not prompt for the password.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of smovva1
smovva1

ASKER

yep that works.
Avatar of smovva1

ASKER

I've requested that this question be closed as follows:

Accepted answer: 0 points for smovva1's comment #38154318

for the following reason:

Very quick response
I think accepting your own. comment is not what you intended to do, because you said that my solution works.

I'll object to your close request so you can correct your decision.
Avatar of smovva1

ASKER

I did accept the solution. It works. I am new to this. Trying to accept it again.