cftp man page

cftp — Conch command-line SFTP client


cftp [-B buffer_size] [-b command_file] [-R num_requests] [-s subsystem]


cftp is a client for logging into a remote machine and executing commands to send and receive file information. It can wrap a number of file transfer subsystems

The options are as follows:

Specifies the default size of the buffer to use for sending and receiving. (Default value: 32768 bytes.)
File to read commands from, '-' for stdin. (Default value: interactive/stdin.)
Number of requests to make before waiting for a reply.
Subsystem/server program to connect to.

The following commands are recognised by cftp :

cd path
Change the remote directory to 'path'.
chgrp gid path
Change the gid of 'path' to 'gid'.
chmod mode path
Change mode of 'path' to 'mode'.
chown uid path
Change uid of 'path' to 'uid'.
Disconnect from the server.
get remote-path [local-path]
Get remote file and optionally store it at specified local path.
Get a list of available commands.
lcd path
Change local directory to 'path'.
lls [ls-options [path]]
Display local directory listing.
lmkdir path
Create local directory.
ln linkpath targetpath
Symlink remote file.
Print the local working directory.
ls [-l [path]]
Display remote directory listing.
mkdir path
Create remote directory.
Toggle progress bar.
put local-path [remote-path]
Transfer local file to remote location
Print the remote working directory.
Disconnect from the server.
rename oldpath newpath
Rename remote file.
rmdir path
Remove remote directory.
rm path
Remove remote file.
Print the SFTP version.
Synonym for 'help'.


cftp by Paul Swartz <z3p@twistedmatrix.com>. Man page by Mary Gardiner <mary@twistedmatrix.com>.

Reporting Bugs

Report bugs to http://twistedmatrix.com/bugs/


October 8, 2005