Home Explore Blog CI



man-pages

3rd chunk of `scp.man`
9eeb820428b9b157a46c0a85299f19ad81aae78c3b4be3b400000001000008f2
                 KbdInteractiveDevices
                     KexAlgorithms
                     KnownHostsCommand
                     LogLevel
                     MACs
                     NoHostAuthenticationForLocalhost
                     NumberOfPasswordPrompts
                     PasswordAuthentication
                     PKCS11Provider
                     Port
                     PreferredAuthentications
                     ProxyCommand
                     ProxyJump
                     PubkeyAcceptedAlgorithms
                     PubkeyAuthentication
                     RekeyLimit
                     RequiredRSASize
                     SendEnv
                     ServerAliveInterval
                     ServerAliveCountMax
                     SetEnv
                     StrictHostKeyChecking
                     TCPKeepAlive
                     UpdateHostKeys
                     User
                     UserKnownHostsFile
                     VerifyHostKeyDNS

       -P port
               Specifies  the port to connect to on the remote host.  Note that
               this option is written with a capital ‘P’, because -p is already
               reserved for preserving the times and mode bits of the file.

       -p      Preserves modification times, access times, and file  mode  bits
               from the source file.

       -q      Quiet  mode:  disables the progress meter as well as warning and
               diagnostic messages from ssh(1).

       -R      Copies between two remote hosts are performed by  connecting  to
               the origin host and executing scp there.  This requires that scp
               running  on  the origin host can authenticate to the destination
               host without requiring a password.

       -r      Recursively copy entire directories.  Note that scp follows sym‐
               bolic links encountered in the tree traversal.

       -S program
               Name of program to use for the encrypted connection.   The  pro‐
               gram must understand ssh(1) options.

       -T      Disable strict filename checking.  By default when copying files
               from  a remote host to a local directory scp checks that the re‐
               ceived filenames match

Title: SCP Command Options: -P, -p, -q, -R, -r, -S, and -T
Summary
This section describes additional options for the `scp` command, continuing from the previous section's list of available SSH configuration options for the `-o` flag. It then details the usage of `-P` to specify the remote host's port, `-p` to preserve file attributes, `-q` for quiet mode, `-R` for remote-to-remote copies, `-r` for recursive directory copying, `-S` to specify an alternative program for the encrypted connection (like ssh), and `-T` to disable strict filename checking.