Possibility of scp --interactive option

Christoph Groth christoph at grothesque.org
Wed Feb 5 07:20:23 AEDT 2025


Morgan, Iain (ARC-TN)[InuTeq, LLC] wrote:

> On Sun, 2 Feb 2025, Jochen Bern wrote:
>
> > On 01.02.25 22:30, Christoph Groth wrote:
> > > 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?
> >
> > Seeing that (the PUT command in) sftp doesn't have such an option,
> > either, I suspect that it might indeed be a protocol issue.
>
> It's not a protocol issue, someone just needs to write the code.

That’s good to know.

> -d
>
> Except that -i is already being used by scp to specify the identity.

I had noticed that, and it’s unfortunate.  So it would have to be
a different letter.  One possibility would be -a (for “ask”), but cp and
rsync already use this for the common “archive” option.  Another
possibility would be -n (for “no overwrite”), but that would be
confusing since cp uses this for --no-clobber (silently do not
overwrite).

Did you write “-d” as a suggestion?

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/20250204/9bffa34d/attachment.asc>


More information about the openssh-unix-dev mailing list