最近的MHA配置时碰到了Permission denied (publickey,gssapi-with-mic,password)这个错误提示,同时在使用ssh -v时,出现了Unspecified...Permission denied (publickey,gssapi-with-mic,password)....,gssapi-with-mic,password debug1: Next authentication method: gssapi-with-mic debug1: Unspecified GSS...Minor code may provide more information No credentials cache found debug1: Next authentication method: publickey...pkalg ssh-rsa blen 277 debug1: read PEM private key done: type RSA debug1: Authentication succeeded (publickey
172.16.1.16's password: Permission denied, please try again. abc@172.16.1.16's password: Permission denied (publickey...,gssapi-keyex,gssapi-with-mic,password)....,gssapi-keyex,gssapi-with-mic,password)....,gssapi-keyex,gssapi-with-mic,password)....,gssapi-keyex,gssapi-with-mic,password).
显示报错信息为ec2-user@34.216.72.146: Permission denied (publickey,gssapi-keyex,gssapi-with-mic)....xyb>ssh -i xybaws_us-weat_key.pem ec2-user@34.216.72.146 ec2-user@34.216.72.146: Permission denied (publickey...,gssapi-keyex,gssapi-with-mic).
. # ssh -lroot -vv 10.18.207.25 debug2: we sent a gssapi-with-mic packet, wait for reply debug1: Authentications...that can continue: publickey,gssapi-keyex,gssapi-with-mic,password debug2: we did not send a packet,...disable method debug1: Next authentication method: publickey debug1: Offering RSA public key: /home/...: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password debug1: Offering..., wait for reply debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
如果大于0, 可以在如/etc/profile之类文件中设置它为0. (8)ssh远程登陆,公钥授权不通过:Permission denied (publickey,gssapi-keyex,gssapi-with-mic...可是,到了第二天,再次ssh登陆时,尼玛,居然报错了~~ Permission denied (publickey,gssapi-keyex,gssapi-with-mic)....,gssapi-keyex,gssapi-with-mic,password debug1: Authentications that can continue: publickey,gssapi-keyex...,gssapi-with-mic,password debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic...,password debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
,gssapi-keyex,gssapi-with-mic,password debug3: start over, passed a different list publickey,gssapi-keyex...,gssapi-with-mic,password debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive...,gssapi-keyex,gssapi-with-mic,password debug3: start over, passed a different list publickey,gssapi-keyex...,gssapi-with-mic,password debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive...,gssapi-with-mic,password debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive
image.png 出现这个错误 Permission denied (publickey,gssapi-keyex,gssapi-with-mic) 起码说明防火墙和sshd都是工作正常的。
ssh免密码登录Permission denied (publickey,gssapi-keyex,gssapi-with-mic) 的解决方案 1.在hadoop目录 新建.ssh目录 使用:ssh-keygen
下面是我个人的配置,仅供参考: # gitcode - csdn Host gitcode.net HostName gitcode.net Preferredauthentications publickey...(公钥), 可选: publickey,gssapi-keyex,gssapi-with-mic,password PreferredAuthentications publickey User...Host 设置成 xiao ,使用的时候 ssh xiao(注意设置User) HostName: 服务器的地址 PreferredAuthentications : 认证方式 可选: publickey...,gssapi-keyex,gssapi-with-mic,password IdentityFile: 指定连接HostName的密钥文件的路径 3.3.2、主机别名设置例子 Host dev1...(公钥), 可选: publickey,gssapi-keyex,gssapi-with-mic,password PreferredAuthentications publickey User
常见问题: 描述:Permission denied (publickey,gssapi-keyex,gssapi-with-mic) ? ?
复制 # 正常登录 debug2: we did not send a packet, disable method debug3: authmethod_lookup publickey debug3...: remaining preferred: keyboard-interactive,password debug3: authmethod_is_enabled publickey debug1:...Next authentication method: publickey debug1: Offering RSA public key: /var/lib/nova/.ssh/id_rsa debug3...: send_pubkey_test debug2: we sent a publickey packet, wait for reply debug1: Server accepts key: pkalg...continue: publickey,gssapi-keyex,gssapi-with-mic,password debug1: Trying private key: /var/lib/nova/
Permanently added ‘52.38.207.43’ (ECDSA) to the list of known hosts. root@52.387.43: Permission denied (publickey...,gssapi-keyex,gssapi-with-mic). lost connection 带上密钥: scp -i .
SSH 权限拒绝 当尝试通过 SSH 进入服务器时,会出现 SSH 权限拒绝错误: Permission denied (publickey,gssapi-keyex,gssapi-with-mic)...总结 本教程介绍了解决 SSH Permission denied (publikey, gssapi-keyex, gssapi-with-mic) 错误所需的步骤。
256,rsa-sha2-512>debug1: SSH2_MSG_SERVICE_ACCEPT receiveddebug1: Authentications that can continue: publickey...,gssapi-keyex,gssapi-with-mic,passworddebug1: Next authentication method: gssapi-keyexdebug1: No valid...publickeydebug1: Offering RSA public key: /root/.ssh/id_rsadebug1: Authentications that can continue: publickey...,gssapi-keyex,gssapi-with-mic,passworddebug1: Trying private key: /root/.ssh/id_dsadebug1: Trying private
256,rsa-sha2-512> debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey...,gssapi-keyex,gssapi-with-mic,password debug1: Next authentication method: gssapi-keyex debug1: No valid...Key exchange context debug1: Next authentication method: gssapi-with-mic debug1: Unspecified GSS failure...Kerberos credentials available (default cache: KEYRING:persistent:0) debug1: Next authentication method: publickey...ssh/id_rsa debug1: Server accepts key: pkalg rsa-sha2-512 blen 279 debug1: Authentication succeeded (publickey
,gssapi-keyex,gssapi-with-mic,password debug3: start over, passed a different list publickey,gssapi-keyex...,gssapi-with-mic,password debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive...,password debug3: authmethod_lookup gssapi-keyex debug3: remaining preferred: gssapi-with-mic,publickey...method debug3: authmethod_lookup gssapi-with-mic debug3: remaining preferred: publickey,keyboard-interactive...,password debug3: authmethod_is_enabled gssapi-with-mic debug1: Next authentication method: gssapi-with-mic
256,rsa-sha2-512> debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey...,gssapi-keyex,gssapi-with-mic,password debug1: Next authentication method: gssapi-keyex debug1: No valid...Key exchange context debug1: Next authentication method: gssapi-with-mic debug1: Unspecified GSS failure...Kerberos credentials available (default cache: KEYRING:persistent:0) debug1: Next authentication method: publickey
=> { "changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex...,gssapi-with-mic,password)...=> { "changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex...,gssapi-with-mic,password)
15 注意:如果是CentOS 6.3系统,默认会把用户的目录进行加密,所以放在/home/user下的文件都是加密的,如果直接使用这种方式登录,会提示一下错误: Permission denied (publickey...,gssapi-keyex,gssapi-with-mic).
Note: ssh的时候如果报错 Permission denied (publickey,gssapi-keyex,gssapi-with-mic) 的话,在 /etc/ssh/sshd_config
领取专属 10元无门槛券
手把手带您无忧上云