免费注册 查看新帖 |

Chinaunix

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

ssh問題請教,急! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-13 11:34 |只看该作者 |倒序浏览
在使用ssh-keygen -t dsa獲得公鑰scp到另一台server上的時候,在調試
不要輸入密碼登入的時候出現以下介面,還是需要輸入密碼才可以登入,該如何解決?

klpgm1% ssh -v it@10.7.32.100
OpenSSH_3.5p1, SSH protocols 1.5/2.0, OpenSSL 0x0090607f
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to 10.7.32.100 [10.7.32.100] port 22.
debug1: Connection established.
debug1: identity file /export/home/tsys/.ssh/identity type -1
debug1: identity file /export/home/tsys/.ssh/id_rsa type -1
debug1: identity file /export/home/tsys/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.6.1p2
debug1: match: OpenSSH_3.6.1p2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.5p1
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: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: dh_gen_key: priv key bits set: 130/256
debug1: bits set: 1631/3191
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host \'10.7.32.100\' is known and matches the RSA host key.
debug1: Found key in /export/home/tsys/.ssh/known_hosts:1
debug1: bits set: 1591/3191
debug1: ssh_rsa_verify: signature correct
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue: publickey,password
debug1: next auth method to try is publickey
debug1: try privkey: /export/home/tsys/.ssh/identity
debug1: try privkey: /export/home/tsys/.ssh/id_rsa
debug1: try pubkey: /export/home/tsys/.ssh/id_dsa
debug1: authentications that can continue: publickey,password
debug1: next auth method to try is password
it@10.7.32.100\'s password:

论坛徽章:
0
2 [报告]
发表于 2006-01-16 09:10 |只看该作者
这东西没弄过,up一下,看有没有清楚的。

论坛徽章:
0
3 [报告]
发表于 2006-02-04 18:26 |只看该作者
有没有把刚獲得的公鑰 public key (id_dsa.pub)放在 10.7.32.100
的 /export/home/it/.ssh/authorized_keys ?

论坛徽章:
0
4 [报告]
发表于 2006-02-13 15:58 |只看该作者
--------
Remote protocol version 1.99, remote software version OpenSSH_3.6.1p2
-------

dsa 可能需要 ssh protocol version 2. 你的是 1.99

try rsa:

ssh-keygen -t rsa

把刚獲得的公鑰 public key (id_rsa.pub)放在 10.7.32.100
的 /export/home/it/.ssh/authorized_keys

论坛徽章:
0
5 [报告]
发表于 2006-02-16 20:19 |只看该作者
authorized_keys2 for ssh2
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP