Summary of supported SCP2 options

The following table summarizes handling of server-side options on the command-line for OpenSSH SCP and PuTTY’s PSCP programs in select WS_FTP Server packages. Remaining options are not applicable for the server since they are handled on the client side.

Purpose

OpenSSH SCP Option

PuTTY SCP (PSCP.EXE)

Handling in WS_FTP Server Premium, Corporate, and Secure

Cipher for encryption of data transfer

-c cipherSelects the cipher to use for encrypting the data transfer. This option is directly passed to ssh(1).

-load sessionLoads settings from the saved session (configured using PuTTY.exe) This session can specify the encryption algorithm.

Supported

Private key file for authentication

-i identity fileSelects the file from which the identity (private key) for RSA authentication is read. this option is directly passed to ssh(1).

-i keyprivate key file (in .PPK format) for authentication

Supported

Preserve file attributes (modification times, access times, and modes) from the original file

-p

-p

Supported

Recursive copy of entire directories

-r

-r

Supported

Verbose mode

-v

-v

Not supported

Enable Compression

-C

-C

Supported

Port to which to connect to on the remote host

-P portNote that this option is written with a capital P, because -p is reserved for preserving the times and modes of the file in rcp.

-P port

Supported

SCP version

-2 SCP2 support

-1SCP1 support

-2 SCP2 support

-1SCP1 support

Supports -2 only

Use of IPv4/IPv6

-4 Forces scp to use IPv4 addresses only.

-6Forces scp to use IPv6 addresses only

-4Forces scp to use IPv4 addresses only.

-6Forces scp to use IPv6 addresses only

Supports -4 only

Server side wildcards

* Match 0 or more characters

? Match a single character

-unsafeAllows server side wildcards.* Match 0 or more characters

?Match a single character

Supports * and ?

Directory listing on remote server

Not available

-lsFor example, pscp -ls fred@example.com:dir1

Not supported.An SCP server cannot implement this option because SCP protocol does not have a mechanism to list files within a directory. While PSCP supports the option (ls) to list files, it may not work with all servers.

References:

  • OpenSSH, 1999a: SCP Man Page. http://www.eos.ncsu.edu/remoteaccess/man/scp.html
  • PuTTY: Using PSCP to transfer files securely. http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter5.html#pscp