LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 784|回复: 2

用scp的一个问题

[复制链接]
发表于 2005-3-5 11:59:29 | 显示全部楼层 |阅读模式
我用scp可以把自己机器里的文件拷到实验室的服务器上,但是从实验室的服务器往我自己的机器上考的时候就出错了,我自己的机器也开了ssh服务的,错误代码如下:
nir@server:~> scp gold.tar.gz root@202.4.142.101:/home
root@202.4.142.101's password:
scp: warning: Executing scp1.
scp: FATAL: Executing ssh1 in compatibility mode failed (Check that scp1 is in your PATH).
lost connection

我自己机器用的是FC3,请问该怎么解决?
谢谢! :help
发表于 2005-3-5 14:54:14 | 显示全部楼层
重新设置你机器上的ssh配置文件,确定只使用ssh2协议,把ssh1协议删除,修改配置文件后要重启sshd,就可以了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-5 22:32:02 | 显示全部楼层
那具体该怎么改呢?
我的/etc/ssh2下有这些文件:
[root@localhost ssh2]# ls
hostkey      license_ssh2.dat  ssh2_config.example   ssh_dummy_shell.out
hostkey.pub  random_seed       sshd2_config          subconfig
license.dat  ssh2_config       sshd2_config.example
/etc/ssh下有这些文件:
[root@localhost ssh]# ls
license.dat  sshd_config           ssh_host_key      ssh_host_rsa_key.pub
moduli       ssh_host_dsa_key      ssh_host_key.pub
ssh_config   ssh_host_dsa_key.pub  ssh_host_rsa_key
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表