Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 a possibility (man scp didn't reveal any) to make scp interactive like cp -i? That is, scp asks, if the target exists, if it may overwrite it?

If yes, does it work locally and remote?

If no: Let's alias it! But I hope for a simpler solution.

share|improve this question
up vote 5 down vote accepted

No. It was intended to operate as a direct, but secure, replacement for rcp and the -i option wasn't something rcp had, so it isn't found in vanilla scp.

You might prefer to use the Secure File Transfer Protocol (SFTP) via the sftp command instead. It supersedes scp and offers an interactive mode (though not quite what you're asking for with the -i request).

share|improve this answer
It's a pity. The -i flag hadn't broken any backwards compatibility. Thanks for the answer! – Boldewyn Apr 18 '10 at 17:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .