Link to home
Create AccountLog in
Linux

Linux

--

Questions

--

Followers

Top Experts

Avatar of smovva1
smovva1

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

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
Avatar of woolmilkporcwoolmilkporc🇩🇪

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of smovva1smovva1

ASKER

yep that works.

Avatar of smovva1smovva1

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

Avatar of woolmilkporcwoolmilkporc🇩🇪

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.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of smovva1smovva1

ASKER

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

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.