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