. abc@172.16.1.16's password: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)....'s password: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)..... abc@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).... denied (publickey,gssapi-keyex,gssapi-with-mic,password).
最近的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
. # 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,...: 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...root@10.18.207.253's password: 最先吸引我注意力就是ssh回去查找id_dsa这个文件作为私钥,而本机只有id_rsa,我猜测是因为服务器是因为设置不同,需要使用 dsa
可是,到了第二天,再次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 debug1: Next authentication method: gssapi-keyex debug1: No valid
,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
显示报错信息为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).
: remaining preferred: keyboard-interactive,password debug3: authmethod_is_enabled publickey debug1:...debug3: remaining preferred: keyboard-interactive,password debug3: authmethod_is_enabled publickey debug1...continue: publickey,gssapi-keyex,gssapi-with-mic,password debug1: Trying private key: /var/lib/nova/...No such file or directory 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
下面是我个人的配置,仅供参考: # 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
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...root@192.168.1.100's password: debug1: Authentication succeeded (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...,password debug3: authmethod_lookup gssapi-keyex debug3: remaining preferred: gssapi-with-mic,publickey...,keyboard-interactive,password debug3: authmethod_is_enabled gssapi-keyex debug1: Next authentication...,password debug3: authmethod_is_enabled gssapi-with-mic debug1: Next authentication method: gssapi-with-mic
again. root@192.168.10.200's password: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password...'s password: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)....'s password: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)....'s password: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)....'s password: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
[root@ansible ~]# ansible webserver -m ping -u root -k -o SSH password: host4 | UNREACHABLE!...=> { "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)
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...private key: /root/.ssh/id_ed25519debug1: Next authentication method: passwordroot@10.10.251.132's password
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...root@192.168.1.199's password: debug1: Authentication succeeded (password).
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
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
常见问题: 描述:Permission denied (publickey,gssapi-keyex,gssapi-with-mic) ? ?
chmod 700 ~/.ssh/ chmod 600 ~/.ssh/authorized_keys 4、ssh localhost:publickey 授权失败 sudo vi /etc/ssh/sshd_config...和password两种授权方式,publickey默认不开启,需要配置为yes。...如果客户端不存在.ssh/id_rsa,则使用password授权;存在则使用publickey授权; 如果publickey授权失败,依然会继续使用password授权。...5、ssh localhost:Permission denied (publickey,gssapi-keyex,gssapi-with-mic). vi /etc/selinux/config...https://stackoverflow.com/questions/7439563/how-to-ssh-to-localhost-without-password
// 启用公钥登录 debug3: authmethod_is_enabled publickey debug1: Next authentication method: publickey debug1...,gssapi-keyex,gssapi-with-mic,password debug1: Trying private key: /home/work/.ssh/id_dsa debug3: no...debug3: remaining preferred: ,password debug3: authmethod_is_enabled password // 下一个认证方法:启用密码登录 debug1...: Next authentication method: password work@localhost's password: 可以看到,确实是认证失败了,但是仅凭一句 we did not send...由此可以看出,是A机器的sshd不认可publickey。
领取专属 10元无门槛券
手把手带您无忧上云