Possibility of scp --interactive option

Christoph Groth christoph at grothesque.org
Sun Feb 2 08:30:03 AEDT 2025


Hello,

Now that scp uses the sftp protocol, wouldn’t it be a good idea to add
an --interactive option à la cp to it?

It seems to me that one common usage of scp is to make sure that the
files being copied are available on the remote machine, but without
overwriting anything (and certainly not silently).  I find myself very
often in this situation, but judging by the number of questions about
such a possibility on the web, I am not the only one.

rsync’s --ignore-existing does not help, because it skips files
silently.

An --interactive option that behaves just like the one in cp would solve
the issue for me.  I would happily alias scp to scp --interactive.  Is
there any technical or other reason why scp does not have such an option
or something similar?

Cheers
Christoph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 869 bytes
Desc: not available
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20250201/4f0006e0/attachment.asc>


More information about the openssh-unix-dev mailing list