服务器怎么连接不上显示密码错误,windows xp ssh服务器连接不上,提示密码认证失败...

debug1: Next authentication method: publickey

debug1: Trying private key: /root/.ssh/identity

debug3: no such identity: /root/.ssh/identity

debug1: Offering public key: /root/.ssh/id_rsa

debug3: send_pubkey_test

debug2: we sent a publickey packet, wait for reply

debug3: Wrote 368 bytes for a total of 1495

debug1: Authentications that can continue: publickey,password

debug1: Trying private key: /root/.ssh/id_dsa

debug3: no such identity: /root/.ssh/id_dsa

debug2: we did not send a packet, disable method

debug3: authmethod_lookup password

debug3: remaining preferred: ,password

debug3: authmethod_is_enabled password

debug1: Next authentication method: password

那个正确的密码也会提示:permission denied(publickey,password,keyboard-interactive)

ssh -vvv 会有以上错误提示。。

更改 ssh-config 里面,把前面的#去掉。

RSAAuthentication yes

PasswordAuthentication yes

然后连接的时间 直接输入 ssh server

而不是 ssh username@server

问题解决,很奇怪哦。。。

今天继续,ssh server git同步的时间会出问题。必须用 ssh username@server

再次试 ssh username@server 依然报错,

authentication that can continue keyboard-interactive

猜想可能是认证方式不对,ssh_config sshd_config这两个的配置都应该没问题的,

查看日志:

2013.10.25 10:40:54 - input_userauth_request: invalid user administrator

2013.10.25 10:40:54 - Invalid user administrator from 192.168.0.240

2013.10.25 10:40:54 - Login name administrator does not match stored username Administrator

为什么会提示登录所用的 user administrator 和 存储在ssh服务器里面的 user administrator 不匹配呢?奇怪。。

于是乎猜想可能是管理员的问题,便建一新帐号git测试。

一定要登录一下哦。在c盘下面生产 git 文件夹哦。。。

弄完后,就一路成功了。可以正常访问了。。。git也可以正常同步了。。。

难道是管理员的问题?至此搞完,一定要新建立帐号哦。。

参考:

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值