scp

secure copy (remote file copy program)

Copy the local host file to 10.0.1.15 /etc/hosts, using batch mode. This is useful if passwordless login is enabled, otherwise it will exit right away saying: Permission denied (publickey,password). lost connection
copy
16
0
scp -B /etc/hosts bob@10.0.1.15:/etc/hostsCopy the local host file to 10.0.1.15 /etc/hosts, using batch mode. This is useful if passwordless login is enabled, otherwise it will exit right away saying: Permission denied (publickey,password). lost connection

7 years, 11 months ago examplenow 1 | details |

Options:

  • scp -Bscp
    Selects batch mode (prevents asking for passwords or passphrases).