|
|
||||||||||||||||||||||||||||
|
light speed a command line top 100 search
free external tools,
java sources
cpp sources
articles
|
- download the free swiss file knife base from sourceforge. - unpack the tool using winzip or unzip. - open the Windows Command Line or a Linux shell.
sfk ftpserv [-h[elp]] [-port=nport] [-rw] [-maxsize=n]
The SFK Instant FTP Server for easy file transfer.
default behaviour:
* the CURRENT DIRECTORY is made accessible, without subdirs.
* any kind of directory traversal (.., / etc.) is blocked.
* just ONE CLIENT (browser etc.) can connect at a time.
* after 30 seconds of inactivity, the connection is closed.
options:
-port=n use other port than default, e.g. -port=10000.
-port2=n alternative port, used if first port fails.
use -port2=0 to disable alternative port.
-pw=x require primitive authentication, i.e. client
must provide password x to login. you may also
set an environment variable like:
SET SFK_FTP_PW=mypassword
-rw allow read+write access. default is readonly.
-maxsize=n increment size limit per file write to n mbytes.
-timeout=n set timeout to n seconds.
-noclone do not try to replicate time stamps on a file
transmission from an sfk ftp client.
-verbose list the transmitted ftp commands.
helpful to get more infos in case of errors.
-quiet[=2] print less or no status informations.
-deep ALLOW PATHS IN FILENAMES. for example, the client
may say "put the/sub/dir/document.txt".
-run allow client to execute system commands.
requires -pw option being set as well.
requires an sfk ftp client to run commands.
-runpw=x require authentication only for run commands.
can also be set via the environment:
SET SFK_FTP_RUNPW=mypassword
NOTE: be aware that ANYONE may connect to your server.
with -rw specified, ANYONE may also write large files.
if this is a problem, do NOT use sfk ftpserv, but download
and install a full-scale ftp server like filezilla.
aliases:
sfk sftserv ... = the same as sfk ftpserv, but using port 2121.
problems and solutions:
if you try to login to the server using a regular ftp client, but
you cannot connect and/or transfer files, then usually there is a
firewall or network configuration incompatible to normal FTP.
- if your ftp client provides a command "passive", then type that,
press enter, and then try the usual commands like dir, get or put.
- whenever possible, use the sfk ftp client to connect to an SFK FTP
server. client and server will then use a different protocol (SFT)
with which you often can transfer files even if normal FTP fails.
- Windows Vista, Windows 7: the firewall may stop sfk to sfk file
transfer on the default port 21, with error ECONNRESET, probably
because sfk uses a different protocol. You then have to use a
different port, e.g. -port=5000 or use Windows' "ftp" command.
see also:
- type "sfk ftp" for the sfk ftp client. when it connects to an
SFK FTP server, you get easier connectivity and more features.
- type "sfk httpserv -h" for the SFK Instant HTTP Server.
file transfer between windows and vmware linux
the sfk ftpserv function was originally created to enable file transfer
between a windows host and vmware guest OS, as I saw no other way
to accomplish this. for detailed instructions, read on here.
sfk is a free open-source tool, running instantly without installation efforts. no DLL's, no registry changes - just get sfk.exe from the zip package and use it (windows and linux binaries are included). read more about all sfk functions here.
|
|