Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Patch to send arbitrary SFTP commands

From: Nick Zitzmann <>
Date: Wed, 28 Mar 2007 19:45:03 -0600

Well, I finally finished up a patch that adds postquote support to
SFTP, allowing users to use commands like OpenSSH's sftp interactive
commands during an SFTP session. This patch is against the latest
version in CVS.

The commands supported are chown, chmod, chgrp, ln/symlink, mkdir,
rm, and rmdir. Syntax is the same as with the OpenSSH sftp command.
If there's a syntax error, the session will end with a

I borrowed some parsing code from OpenSSH, which uses the BSD
license. I hope that's OK...

I also only tested the rm command, since that's the only one I really
need, but the others ought to work...

Nick Zitzmann

Received on 2007-03-29

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET