search for: sftp_config

Displaying 2 results from an estimated 2 matches for "sftp_config".

Did you mean: sftpd_config
2002 Jul 19
0
sftp / scp extension
We have a need to allow for encrypted file transfers around the internet, but do not wish to expose our systems completely. What we would like to see is either an extension to the scp / sftp code to use an sftp_config or scp_config type file that places restrictions on directory movement, upload locations, download locations, etc... Essentially run the sftp-server or scp code within a chrooted environment within the users directory could be sufficient, although allowing more movement / flexibility based on...
2007 Nov 11
1
ftp-server patch - restrict user to directory
...43,7 @@ #include "sftp.h" #include "sftp-common.h" +#include "pathnames.h" /* helper */ #define get_int64() buffer_get_int64(&iqueue); @@ -74,6 +74,141 @@ Attrib attrib; }; +/* Name of the server configuration file. */ +char *config_file_name = _PATH_SFTP_CONFIG_FILE; + +/* If not NULL restrict the user to under this directory */ +char* RestrictDirectory; + +/* **** Start parsing config file code **** */ + +/* Read the optional config file. If mandatory the file must exist. + * Exit on error. + */ +static void +load_sftp_config(char* file_name, int mandato...