Hi all. When using scp from putty (pscp.exe), I always had to explicitly give the option "-scp" otherwise the transfer failed with:
""" sh: /usr/libexec/sftp-server: not found unable to initialise SFTP: could not connect """ I think it would be nice to be able to disable sftp support without editing "options.h" (similar to (EN|DIS)ABLE_X11FWD) In the appended patch I added a check for DISABLE_SFTPSERVER. Disabling sftp support is then possible via: CFLAGS="-DDISABLE_SFTPSERVER" Cheers, Robert
Index: dropbear/options.h =================================================================== --- dropbear/options.h (revision 3891) +++ dropbear/options.h (working copy) @@ -197,10 +197,14 @@ /* if you want to enable running an sftp server (such as the one included with * OpenSSH), set the path below. If the path isn't defined, sftp will not * be enabled */ +#ifndef DISABLE_SFTPSERVER + #ifndef SFTPSERVER_PATH #define SFTPSERVER_PATH "/usr/libexec/sftp-server" #endif +#endif + /* This is used by the scp binary when used as a client binary. If you're * not using the Dropbear client, you'll need to change it */ #define _PATH_SSH_PROGRAM "/usr/bin/dbclient"
