Possibility of scp --interactive option
Damien Miller
djm at mindrot.org
Mon Feb 3 11:57:51 AEDT 2025
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.
If someone wants to try this, it's not particularly hard but it needs
to be implemented for the download and upload cases separately. Once
done it would be pretty easy to have it available both for interactive
sftp and command-line scp (when using sftp as a transport).
Also, we don't really do --long-options in OpenSSH, but both GNU and BSD
cp support -i for --interactive, so that should be fine.
-d
More information about the openssh-unix-dev
mailing list