. 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
Crunchbits VPS(virt.crunchbits.com) 时,由于更换电脑导致认证的 ssh 秘钥丢失,尝试 SSH 密码登录时遇到如下错误提示:Permission denied (publickey...,gssapi-keyex,gssapi-with-mic).。...required pam_nologin.soaccount include password-authpassword include password-auth...pam_selinux.so open env_paramssession optional pam_keyinit.so force revokesession include password-auth...通过修改 SSH 配置文件并启用 PasswordAuthentication 选项,你可以允许密码登录并解决 Permission denied (publickey,gssapi-keyex,gssapi-with-mic
,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
这个地方也需要小心,避免配置错误,把自己关在外面 #生产环境先配置一个可登录的普通账号 systemctl restart sshd #验证root登录失败 root@192.168.179.111's password...#普通用户登录成功 [root@localhost ~]# ssh user01@192.168.179.111 user01@192.168.179.111's password: [user01@...systemctl restart sshd #没有输入密码的机会 [root@localhost ~]# ssh user01@192.168.179.111 Permission denied (publickey...,gssapi-keyex,gssapi-with-mic)....[root@localhost ~]# ssh root@192.168.179.111 Permission denied (publickey,gssapi-keyex,gssapi-with-mic
显示报错信息为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 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).
image.png 出现这个错误 Permission denied (publickey,gssapi-keyex,gssapi-with-mic) 起码说明防火墙和sshd都是工作正常的。
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
ssh免密码登录Permission denied (publickey,gssapi-keyex,gssapi-with-mic) 的解决方案 1.在hadoop目录 新建.ssh目录 使用:ssh-keygen
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
常见问题: 描述:Permission denied (publickey,gssapi-keyex,gssapi-with-mic) ? ?
领取专属 10元无门槛券
手把手带您无忧上云