On Thursday, 18 January 2024 10:37:18 CET Ogogon !!! wrote:
> 18.01.2024 11:53, Jakub Jelen wrote:
> > Hi,
> > no, it is not possible with the scp API. The SCP is very limited and
> > can only send and receive files (and is deprecated [1]).
> >
> > You could do this though with the SFTP API.
>
> Thank you. However, if I understand correctly, this requires that ftpd
> be installed and running on the remote machine.
No, you need an SSH subsystem called sftp-server. For example OpenSSH provides
one or you can implement one with libssh :-)
Cheers
Andreas
--
Andreas Schneider [email protected]
GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D