comand name: scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[[email protected]]host1:]file1 [...] [[[email protected]]host2:]file2
comments:
warning:
1. problem:
If you want to scp some file from server A to the server B, you have to install the scp command on server B also, or you will have error like this.
=================================================
[[email protected] ~]# scp "/usr/bin/scp" [email protected]:/tmp/
[email protected]‘s password:
bash: scp: command not found
=================================================
solution: install scp on server B, yum install openssh-clients.x86_64
时间: 2024-11-05 20:34:02