Linux
--
Questions
--
Followers
Top Experts
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
How can I force it to "timeout" and not prompt for the password.
Thanks
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
ASKER CERTIFIED SOLUTION
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
yep that works.
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
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.
I'll object to your close request so you can correct your decision.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
I did accept the solution. It works. I am new to this. Trying to accept it again.
Linux
--
Questions
--
Followers
Top Experts
Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.