码迷,mamicode.com
首页 > 其他好文 > 详细

[CommandDetail] SCP

时间:2016-08-02 17:13:19      阅读:143      评论:0      收藏:0      [点我收藏+]

标签:scp

comand name: scp


usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]

           [-l limit] [-o ssh_option] [-P port] [-S program]

           [[user@]host1:]file1 [...] [[user@]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.

=================================================

[root@hcszmons02 ~]# scp "/usr/bin/scp" ericz@10.24.8.4:/tmp/

ericz@10.24.8.4‘s password: 

bash: scp: command not found

=================================================

        solution: install scp on server B, yum install openssh-clients.x86_64

[CommandDetail] SCP

标签:scp

原文地址:http://zhangke0516.blog.51cto.com/1655731/1833554

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!