[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Request to help regarding ssh_scp apis.


Hi,
Thanks for replying.

Can you give pointers to, how to use a timeout with sftp?
Or which libssh APIs we can use to achieve it?

Thanks,
Yash

On Mon, Apr 27, 2020 at 3:07 PM Andreas Schneider <asn@xxxxxxxxxxxxxx>
wrote:

> On Saturday, 25 April 2020 22:02:09 CEST Yash Katta wrote:
> > Hi,
>
> Hi Yash,
>
> > My name is Yash Katta. In my current project. I am working on ssh_scp
> APIs
> > (more precisely ssh_scp_push_file, ssh_scp_write, ssh_scp_push_directory
> > APIs).
> > When I interrupt the scp communication on my Ubuntu 18.04 using a command
> >
> > *$ sudo iptables -I INPUT -s [ip_address] -j DROP*
> >
> > The process completely stops for an unknown time period.
> >
> > So I want to ask, how to set a timeout for this task. so that if I didn't
> > get the response, it will wait for some time and on timeout, it returns
> > some SSH_ERROR and proceeds further.
>
> SCP is one of the worst protocols on planet earth and should be removed as
> soon as possible. Please use SFTP instead!
>
>
>
>         Andreas
>
> --
> Andreas Schneider                 asn@xxxxxxxxxxxxxx
> GPG-ID:     8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D
>
>
>

References:
Request to help regarding ssh_scp apis.Yash Katta <yash.katta1@xxxxxxxxx>
Re: Request to help regarding ssh_scp apis.Andreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org