pscp [scp-options] [user@]site:remote_file local_file
pscp [scp-options] local_file [user@]site:remote_file
pscp (sshproxy secure copy client) is a program to securely copy files from/to the local machine to/from a remote host, through a special proxy called sshproxy. It is actually a bash(1) wrapper around the official scp(1) client.
You can give options to the official scp(1) client by putting them on the command line.
To give the address of the sshproxy server, you may set some environment variables, or copy and edit the pscp script. See the section ENVIRONMENT below.
To copy files from/to a remote host, you need to know its symbolic name (see pssh(1) for details), and put it on the command line as user@site. user is the remote username, and site is the symbolic name of the remote host. If user is not given, a default user will be chosen by the proxy - this differs from scp(1) which use the currently logged in user (id -un).
Unlike scp(1), pscp and sshproxyd(8) do not yet support copies between two remote hosts.
There are no options used by pscp. See scp(1) for a list of options.
The following environment variables may be set in the user's .bashrc or equivalent.
In case of problem connecting to the sshproxyd(8) server, one can set
the environment variable $verbose to check the generated ssh(1)
To copy a file to the webserver remote host:
pscp ./httpd.conf webmaster@webserver:/etc/apache2/httpd.conf
To copy a file from db_host as user admin on the proxy:
USER=admin pscp root@db_host:/backup/latest.dar /data/backup/db_host/
Copies between two remote hosts are not yet supported.
See sshproxyd(8)/BUGS for the current limitations and features of sshproxy.
You can report any bug found on the sshproxy mailing list:
The sshproxy home page: <http://sshproxy-project.org/>
The sshproxy online documentation: