Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 4 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
1  
It's a pity. The -i flag hadn't broken any backwards compatibility. Thanks for the answer! –  Boldewyn Apr 18 '10 at 17:37

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.