SCP command options

This section covers the available SecureCopy (SCP) commands supported by NetStorage.

NetStorage supports the normal command set for SCP (except where noted) in this table:
Option Description
-1 Use SSH protocol 1
Note: NetStorage does not support SSH protocol 1 -- This command is not supported for use.
-2 Use SSH protocol 2
-4 Use only IPv4 addresses
-6 Use only IPv6 addresses
-B Use batch mode
-C Use compression
-c <cipher> Specify the “<cipher>” for encrypting the data transfer
-F <ssh_config> Designate a substitute per-user SSH configuration file (i.e., define it as the “<ssh_config>” variable)
-i <identity_file> If applicable, include this option and set the “<identity_file>” variable as the complete path to, and file name of the private SSH key file.
-l <limit> Include this command and set the “<limit>” variable to the maximum bandwidth to be used (in kilobits per second)
-o <ssh_option> Send the specified “<ssh_option>” to SSH in the ssh_config format. Available options include the following (Detailed information on each of these options can be found at
  • AddressFamily
  • BatchMode
  • BindAddress
  • ChallengeResponseAuthentication
  • CheckHostIP
  • Cipher
  • Ciphers
  • Compression
  • CompressionLevel
  • ConnectionAttempts
  • ConnectTimeout
  • ControlMaster
  • ControlPath
  • GlobalKnownHostsFile
  • GSSAPIAuthentication
  • GSSAPIDelegateCredentials
  • HashKnownHosts
  • Host
  • HostbasedAuthentication
  • HostKeyAlgorithm
  • HostKeyAlias
  • HostName
  • IdentityFile
  • IdentitiesOnly
  • KbdInteractiveDevices
  • LogLevel
  • MACs
  • NoHostAuthenticationForLocalHost
  • NumberOfPasswordPrompts
  • PasswordAuthentication
  • Port
  • PreferredAuthentications
  • Protocol
  • ProxyCommand
  • PubKeyAuthentication
  • RekeyLimit
  • RhostsRSAAuthentication
  • RSAAuthentication
  • SendEnv
  • ServerAliveInterval
  • ServerAliveCountMax
  • SmartcardDevice
  • StrictHostKeyChecking
  • TCPKeepAlive
  • UsePrivilegedPort
  • User
  • UserKnownHostsFile
  • VerifyHostKeyDNS
-P <port> Connect to port on the remote host
-p Save the original file’s modification/access times, and modes
-q Turn off the progress meter
-r Copy recursively
-S <program> Specify the <program> to use for connecting
-v Display the operation’s execution step by step

Command format

scp [-1234BCpqrv] [-c <cipher>] [-F <ssh_config>] [-i <identity_file>] [-l <limit>] [-o <ssh_option>] [-P <port>] [-S <program>][[user@]host1:] file1[...] [[user@]host2:]file2
Note: Values displayed in “< >” represent variables. The “< >” are not used in the input.