免费注册 查看新帖 |

ChinaUnix.net

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7976 | 回复: 0

[SCO UNIX] scp - Executing ssh1 in compatibility mode failed [复制链接]

论坛徽章:
0
发表于 2005-08-25 04:45 |显示全部楼层
我在4.0G上下载OpenSSH 4.0p1 安装成功后,scp 至5.1B(自带ssh)  出错
"scp - FATAL: Executing ssh1 in compatibility mode failed (check that scp1 is in your PATH)."
网上search了一下,找到了答案,贴出来与大家分享

Quote 1:

This problem is often quite perplexing, since a ssh -V trace may show that you're using SSH-2 - so what
is a message about "ssh1 compatibility mode " doing in there?

What's happening is this:
  
  1. On the OpenSSH client, you run say, scp foo server:bar
  2. scp runs ssh in a subprocess to connnect to the server, and run the remote command scp -t bar. This
     is intend to start an instance of the scp program on the server, and the two scp's will cooperate by
     speaking over the SSH connection, to retrieve the file.
  3. ssh connects to the server (using either protocol 1 or 2, it doesn't matter), and runs the remote scp
     command. However, the "scp" that gets run on the server is the SSH2 scp program (scp2), not the
     OpenSSH one. The crux of the problem is: besides the name, these two scp's have exactly nothing in
     common. scp2 cannot speak the file-transfer protocol that OpenSSH scp does. However, scp2 recognizes
     from the "-t" flag what's expected, and tries exec scp1 to service the connection (this is the extent
     of SSH2's SSH-1 compatibility; where OpenSSH has code for both protocols in a single set of programs,
     SSH2 expects to execute programs from a parallel SSH1 installation). It fails (presumably because
     you don't have SSH1 installed), and reports the problem.

The solution is to install either the OpenSSH or SSH1 version of scp on the server under the name "scp1",
somewhere in the sshd2's PATH.



Quote 2:

OpenSSH implements "scp" via RCP over an SSH channel.
ssh.com implement "scp" via FTP over an SSH channel.

OpenSSH's server has both implementations, but it's client only uses
the RCP version.

So if the client is OpenSSH, use "sftp" to get to an ssh.com server.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

数据风云,十年变迁
DTCC 第十届中国数据库技术大会已启航!

2019年5月8日~5月10日,由IT168旗下ITPUB企业社区平台主办的第十届中国数据库技术大会(DTCC2019),将在北京隆重召开。大会将邀请百余位行业专家,就热点技术话题进行分享,是广大数据领域从业人士的又一次年度盛会和交流平台。与SACC2018类似,本届大会将采用“3+2”模式:3天传统技术演讲+2天深度主题培训。大会不仅提供超100场的主题演讲,还会提供连续2天的深度课程培训,深化数据领域的项目落地实践方案。
DTCC2019,一场值得期待的数据技术盛会,殷切地希望您报名参与!

活动入口>>
  

北京盛拓优讯信息技术有限公司. 版权所有 16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122
中国互联网协会会员  联系我们:huangweiwei@it168.com
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP