免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3659 | 回复: 3
打印 上一主题 下一主题

SCP的怪问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-07-11 10:27 |只看该作者 |倒序浏览
本帖最后由 golden_armor 于 2011-07-11 10:32 编辑

SSH协议生效之后,scp只能单方向成功,另一个方向无法传输文件。实在想不通。

成功的:
lan-lansing2 ntac1> scp AP* onexev@flx261:/tmp

AP_PO_SM.sh          100%
|*********************************************************************************
**********************************************************************************
***********************|  1636       00:00   

失败的:
lan-lansing2 ntac1>  scp -v  onexev@flx261:/tmp/AP*   .   

Executing: program /usr/bin/ssh host flx261, user onexev, command scp -v -f /tmp/AP*

Sun_SSH_1.1.3, SSH protocols 1.5/2.0, OpenSSL 0x0090704f

debug1: Reading configuration data /etc/ssh/ssh_config

debug1: Rhosts Authentication disabled, originating port will not be trusted.

debug1: ssh_connect: needpriv 0

debug1: Connecting to flx261 [10.17.135.17] port 22.

debug1: Connection established.

debug1: identity file /home/ntac1/.ssh/id_rsa type 1

debug1: identity file /home/ntac1/.ssh/id_dsa type -1

debug1: Remote protocol version 2.0, remote software version Sun_SSH_1.1.1

debug1: match: Sun_SSH_1.1.1 pat Sun_SSH_1.1.1*

debug1: Enabling compatibility mode for protocol 2.0

debug1: Local version string SSH-2.0-Sun_SSH_1.1.3

debug1: use_engine is 'yes'

debug1: pkcs11 engine initialized, now setting it as default for RSA, DSA, and
symmetric ciphers

debug1: pkcs11 engine initialization complete

debug1: Failed to acquire GSS-API credentials for any mechanisms (No credentials
were supplied, or the credentials were unavailable or inaccessible

Unknown code 0

)

debug1: SSH2_MSG_KEXINIT sent

debug1: SSH2_MSG_KEXINIT received

debug1: kex: server->client aes128-cbc hmac-md5 none

debug1: kex: client->server aes128-cbc hmac-md5 none

debug1: Peer sent proposed langtags, ctos: en-US,en-CA,es,es-MX,fr,fr-CA,i-default

debug1: Peer sent proposed langtags, stoc: en-US,en-CA,es,es-MX,fr,fr-CA,i-default

debug1: We proposed langtags, ctos: i-default

debug1: We proposed langtags, stoc: i-default

debug1: Negotiated lang: i-default

debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent

debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP

debug1: Remote: Negotiated main locale: C

debug1: Remote: Negotiated messages locale: C

debug1: dh_gen_key: priv key bits set: 140/256

debug1: bits set: 1644/3191

debug1: SSH2_MSG_KEX_DH_GEX_INIT sent

debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY

debug1: Host 'flx261' is known and matches the RSA host key.

debug1: Found key in /etc/ssh/ssh_known_hosts:67

debug1: bits set: 1611/3191

debug1: ssh_rsa_verify: signature correct

debug1: newkeys: mode 1

debug1: set_newkeys: setting new keys for 'out' mode

debug1: SSH2_MSG_NEWKEYS sent

debug1: expecting SSH2_MSG_NEWKEYS

debug1: newkeys: mode 0

debug1: set_newkeys: setting new keys for 'in' mode

debug1: SSH2_MSG_NEWKEYS received

debug1: done: ssh_kex2.

debug1: send SSH2_MSG_SERVICE_REQUEST

debug1: got SSH2_MSG_SERVICE_ACCEPT

debug1: Authentications that can continue:
gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive

debug1: Next authentication method: gssapi-keyex

debug1: Next authentication method: gssapi-with-mic

debug1: Failed to acquire GSS-API credentials for any mechanisms (No credentials
were supplied, or the credentials were unavailable or inaccessible

Unknown code 0

)

debug1: Next authentication method: publickey

debug1: Trying public key: /home/ntac1/.ssh/id_rsa

debug1: Server accepts key: pkalg ssh-rsa blen 149 lastkey 6ee60 hint 0

debug1: read PEM private key done: type RSA

debug1: Authentication succeeded (publickey)

debug1: fd 5 setting O_NONBLOCK

debug1: fd 6 setting O_NONBLOCK

debug1: channel 0: new [client-session]

debug1: send channel open 0

debug1: Entering interactive session.

debug1: ssh_session2_setup: id 0

debug1: Sending command: scp -v -f /tmp/AP*

debug1: channel request 0: exec

debug1: channel 0: open confirm rwindow 0 rmax 32768

AP_PO_SM.sh            0% |
|     0       --:-- ETASending file modes: C0755 1636 AP_PO_SM.sh

AP_PO_SM.sh            0% |
|     0       --:-- ETA

论坛徽章:
0
2 [报告]
发表于 2011-07-12 13:42 |只看该作者
对比一下两台机的sshd_conf?

论坛徽章:
1
天秤座
日期:2013-10-23 13:20:42
3 [报告]
发表于 2011-07-12 16:09 |只看该作者
看看对端的sftp子系统是否启用了?

论坛徽章:
1
天秤座
日期:2013-10-23 13:20:42
4 [报告]
发表于 2011-07-12 16:10 |只看该作者
看看对端的sftp子系统是否启用了?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP