ssh scp

ssh [-1 246Aa CfgKkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec] [-D  [bind_address:]port] [-e escape_char]
         [-F configfile] [ -i identity_file] [-L  [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec]
         [-O ctl_cmd] [-o option] [-p port] [-R  [bind_address:]port:host:hostport] [-S ctl_path]

         [-w local_tun[:remote_tun]] [user@]hostname [command]


scp - secure copy (remote file copy program)
     scp [-1 246B Cpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port][-S program]

         [[user@]host1:]file1 ... [[user@]host2:]file2

      scp中大写P配置端口,因为小写p被占用了。

      甚至支持两个remote设备之间copy。

 

     注意:scp的最后两个参数file1, file2不能挪到option参数之前,必须放在最后,否则出错。

              6.1版本中:scp包含参数'3',表示在两个remote设备之间copy时是否经过local设备;如果有3,则表示经过local转一遍,否则remote之间自己传输即可。



一、在-o或ssh_config中的

ConnectTimeout ------- 连接服务器时select的超时时间

ServerAliveInterval
ServerAliveCountMax   ---------- 连接成功后,后续select的超时时间

都很有用,控制select超时。在openssh 4.7版本中,后两个参数只是部分支持。6.1版本中,则完全支持。


 



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值