David Robins > Net-SFTP > psftp

Download:
Net-SFTP-0.10.tar.gz

Annotate this POD

CPAN RT

New  10
Open  2
View/Report Bugs
Source  

NAME ^

psftp - Perl secure file transfer client

SYNOPSIS ^

psftp [-v] [-C] hostname

DESCRIPTION ^

psftp is an interactive SFTP client written in Perl, using the Net::SFTP libraries. It is very similar in functionality to the sftp program that is part of both OpenSSH and ssh2. Because it is built upon the SSH implementation in Net::SSH::Perl, it supports many features of SSH, such as public key authentication and compression. psftp (and SFTP in general) requires the use of the SSH2 protocol; thus, you must have the necessary libraries installed in order to use SSH2 in Net::SSH::Perl.

On startup, psftp logs into the specified hostname, then enters an interactive command mode. The supported list of commands is below in INTERACTIVE COMMANDS.

OPTIONS ^

psftp supports the following options:

-C

Enables compression (via the compression option to the Net::SSH::Perl constructor).

-v

Enables debugging messages, both in Net::SFTP and in Net::SSH::Perl, via the debug options to the constructors.

INTERACTIVE COMMANDS ^

In interactive mode, psftp understands a subset of the commands supported by sftp. Commands are case insensitive.

cd path

Change remote directory to path.

exit / quit

Quit sftp.

get remote-path [local-path]

Retrieve the file remote-path and store it in the local machine. If the local path name is not specified, it is given the same leaf name it has on the remote machine. Copies the remote file's full permission and access times, as well.

h / ?

Display help screen.

ls [path]

Display remote directory listing of either path or current working remote directory if path is unspecified.

mkdir path

Create remote directory specified by path.

put local-path remote-path

Upload the file local-path and store it on the remote machine. Copies the local file's full permission and access times, as well.

pwd

Display remote working directory.

rename oldpath newpath

Rename remote file from oldpath to newpath.

rmdir path

Remove remote directory specified by path.

rm path

Remove remote file specified by path.

version

Show SFTP version.

AUTHOR & COPYRIGHTS ^

Please see the Net::SSH::Perl manpage for author, copyright, and license information.

syntax highlighting: