Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there anyway we can specify password within ssh-copy-id command so we don't have to enter the prompt.

FYI: What I'm trying to do is writing a simple task in capistrano to authorize the current working key to a linux server. I find that it's not quite robust if we have to enter password manually.

p/s: sshpass is not a solution since brew doesn't accept it.

share|improve this question
You're supposed to set this up in advance. What are you actually trying to do? – Michael Hampton Apr 29 '13 at 22:23
@MichaelHampton Thanks for your concern. I just updated my question :) – nXqd Apr 29 '13 at 22:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.