I don't know what is happening.
I have been able lớn connect lớn the server for a couple of days without problems and suddendly I got a frozen window using putty. After that, each time I try lớn connect, I receive this message:
disconnected: no supported authentication methods available (server sent: publickey, gssapi-with-mic)
I am using putty and puttyagent for private key. I already have uploaded the public key lớn the server and I was able lớn connect half an hour ago.
How can I kiểm tra why it is failing? I haven't change the user or password or anything.
asked Mar 4, năm trước at 9:36
BiribuBiribu
3,81314 gold badges48 silver badges82 bronze badges
2
I had the same issue after creating a Centos 7 vm using Vagrant. In the sshd_config tệp tin it said "PasswordAuthentication no". Changing that lớn "PasswordAuthentication yes" and a restart of sshd solved it for u.
answered Jul 29, 2017 at 6:27
I had a similar issue:
- in putty console, I got the message saying "Server refused our key"
- windows error message was: "PuTTY Fatal Error" - "No supported authentication methods available (server sent: public key,gssapi-keyex,gssapi-with-mic)"
I was able lớn connect lớn EC2 via PowerShell successfully (with .pem file) sánh I realized that .ppk tệp tin was wrong.
Googled for about an hour and find that when you generate the .ppk with PuTTYgen for the first time you'll see the key comment filed something lượt thích "rsa-key-20191006" and what should be there is "imported-openssh-key".
After I loaded the same .pem tệp tin, as for the first time (but DID NOT CLICK on Generate) and clicked Save Private Key and used this private key for Auth, everything worked as expected.
answered Oct 6, 2019 at 15:45
1
In my case updating both putty and puttygen lớn the latest version (0.76) solved this issue.
- Download latest putty and latest puttygen from https://www.puttygen.com/#Download_PuTTYgen_on_Windows
- In puttygen click Load, chose All Files and select your PEM tệp tin for your EC2 instance.
- Choose SSH-1 (RSA) as a type of key lớn generate.
- Click on Save private key.
- In putty in the Auth section click on browse and select your generated private key.
answered Feb 11, 2022 at 9:52
Michał StochmalMichał Stochmal
6,5904 gold badges38 silver badges45 bronze badges
I got the same error
disconnected: no supported authentication methods available (server sent: publickey, gssapi-with-mic)
while trying lớn connect lớn an AWS EC2 instance with ssh using a PPK. The issue I had and fixed was that when I used PuTTYKeyGenerator lớn convert from PEM lớn PPK, by mặc định it uses PPK tệp tin version 3 which is not supported by AWS EC2 and when I tried lớn connect with mRemoteNG I got the error, then I tried directly with PuTTYNG I got PuTTY key format too new
:
To make it work, change in PuTTYKeyGenerator >> Key >> Parameters for saving key files >> PPK tệp tin version: 2
and then reconvert the PPK and should work.
answered Sep 15, 2021 at 14:26
m4rcccm4rccc
1211 silver badge4 bronze badges
3
Well...
In the over, I had lớn delete all my keys, upload them again and wait a half an hour more or less. I don't know what happened but now it works again.
answered Jun 2, năm trước at 10:47
BiribuBiribu
3,81314 gold badges48 silver badges82 bronze badges
I was getting this error because of wrong userid. As soon as I used ec2-user it worked. I was under the impression that my AWS tài khoản id is my userid. It seems ec2-user is by mặc định the user, you should login with.
answered Feb 26, 2020 at 17:52
Copy the nội dung in your pem tệp tin and create another pem tệp tin and paste the nội dung. Sounds lame... but it works !!
answered May 8, 2019 at 13:52
Just go lớn Putty keygen and load an existing private key from your local path where vagrant box for centos is installed (example :- ...vagrant\machines\default\virtualbox\private_key) and then choose SSH-1 (RSA) option from below and lastly click on "Save Private Key" button and save that tệp tin in your desktop or any where. Then open putty fill the ip address of machine -> go lớn SSH --> Auth -->Browse and provide the same key you have saved in your desktop or anywhere and then click on open.
answered May 27, 2021 at 12:16
I have the same issue and this is only because of Windows Defender. Just Goto RANSOMWARE Protection and allow your Know App lượt thích Putty or MoBaExtreme etc.
answered Apr 22, 2020 at 5:44
After trying almost everything, this solved the issue for me: I downloaded the latest version of PuTTYgen (0.77) and loaded the private key (.ppk) tệp tin. I then proceeded lớn [Save Private Key] and saved it under a different name.
This resolved the issue for u.
answered Aug 31, 2022 at 9:58
MDeMDe
3831 gold badge4 silver badges8 bronze badges
In my case only upgrading the putty version solved the issue. I was using 0.72 version. I downloaded the 0.79 installed from here. Ran the installer. It upgraded the version of the existing installation. It retained all my saved sessions and configurations. The same configuration that was not working earlier, started working after the upgrade, without any changes.
answered Sep 18, 2023 at 7:23
I had the same issue while connecting lớn openshift Labs. Stopped working for a new server. I had lớn Upload public key lớn OPENTLC again and it worked with the Putty
In PuTTY, under Category on the left, navigate lớn Connection → SSH → Auth.
On the right under Authentication parameters, click Browse and locate the private key saved from PuttyGen
answered Oct 31, 2019 at 17:31
spmspm
1061 silver badge6 bronze badges
I faced the same error and this is what worked for u.
- In the Category pane, expand Connection, expand SSH, and then choose Auth.
- Complete the following: Choose Browse. Select the .ppk tệp tin that you generated for your key pair and choose Open.
AWS Docs reference link: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html
answered Dec 29, 2021 at 16:57
AtindraAtindra
1211 gold badge3 silver badges9 bronze badges
I am using CPanel and I forgot lớn authorize the key sánh it kept giving u that error..then I had some caffeine and realized I needed lớn authorize. Problem solved!
answered Jul 6, 2022 at 12:08
I found 2 solutions for u. Either one of them works.
- Updating Filezilla from 3.52 lớn 3.66
- Using the right format in ppk key tệp tin.
Just lớn add my scenario in case it helps someone, I was having trouble connecting lớn a newly span up ec2 aws linux 2 instance and getting this exact error: "No supported authentication methods available (server sent: gssapi-keyex,gssapi-with-mic)" and ssh was configured correctly and keys were working on other instances. Could connect when I enabled password authentication.
After much searching and testing the issue was we are using a Directory as a Service provider called Jumpcloud and their mặc định registration of machines changed sánh that "Enable Publik Key Authentication" was now unticked by mặc định, despite it being enabled in ssh_config.
jarm.dahljarm.dahl
511 silver badge5 bronze badges
If you are using filezilla and facing this issue, Please install latest version of filezilla. It resolves the issue.
shivshiv
6451 gold badge6 silver badges12 bronze badges
I'm using CentOS Stream 9. As soon as I created the linux box at DigitalOcean.com
I couldn´t login usin putty. So using the console of the droplet I modified tệp tin 50-cloud-init.conf
located in directory /etc/ssh/sshd_config.d
with the below content:
PasswordAuthentication yes
PermitRootLogin yes
the restarted the sshd service an worked nice !!!
1
I have the same error, with an Oracle Cloud box. It happens only from my work máy tính. No issues connecting from the PC. Both on same trang chính LAN. I tried everything in this thread and ran out of ideas.
Wireshark did not help u as client-server connect just fine, start exchanging new DH keys, then putty sends an ACK FIN and then an out-of-order segment. And then all stops. Not sure why, as the handshake and key exchange segments seem just fine.
scavengerscavenger
4084 silver badges12 bronze badges
Restarting the machine and re-installing FileZilla and then connecting again solved my issue.
answered Nov 16, 2021 at 14:42
1
This issue I could resolve by using .ppk tệp tin instead of .pem tệp tin.
The above worked for u.
Yunnosch
26.6k9 gold badges44 silver badges61 bronze badges
answered Mar 8, 2021 at 12:12
user3593025user3593025
213 silver badges10 bronze badges
4