# 文件复制 $scp local_file remote_username@remote_ip:remote_folder $scp local_file remote_username@remote_ip:remote_file $scp local_file remote_ip:remote_folder $scp local_file remote_ip:remote_file # 目录复制 $scp -r local_folder remote_username@remote_ip:remote_folder $scp -r local_folder remote_ip:remote_folder
2、案例
scp /etc/profile master02:/etc/profile scp /usr/local/soft/hadoop-3.1.3.tar.gz root@slave02:/usr/local