-2

I am able to connect to AWS Linux 2023 instance using PuTTY.

When connecting using WINSCP Site information getting error:

Server refused our key. Authentication failed.

From WinSCP I can press Ctrl+P and it opens PuTTY properly. That indicates that connection info is valid.

How can i connect winscp in aws server.

enter image description here

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
Karthi Keyan
  • 127
  • 7
  • Please move your question to [su] (delete here, re-post there). It's [off-topic here](https://stackoverflow.com/help/on-topic). – Martin Prikryl Jun 23 '23 at 05:31
  • Since it works with PuTTY, the network configuration is fine. The error is saying that the keypair you provided is not valid. – John Rotenstein Jun 23 '23 at 05:47
  • @JohnRotenstein you have said that the key pair is not valid but it open in putty. The same key pair is working for putty and winscp in past days. So whats wrong in the key pair. – Karthi Keyan Jun 23 '23 at 05:53
  • One of the following is happening in WinSCP: It is using a different username, a different keypair or a different target (IP / DNS Name). Please note that PuTTY uses a different format (.ppk) for keypairs than every other SSH tool (.pem). You can convert .ppk to .pem using PUTTYgen. – John Rotenstein Jun 23 '23 at 06:02
  • how can i look the session log? – Karthi Keyan Jun 23 '23 at 06:32
  • Logging can be enabled on Options / Preferences but if you can't get to normal window because of the auth failure you can use commandline options, see https://winscp.net/eng/docs/commandline#logging . @JohnRotenstein: WinSCP uses either OpenSSH (PEM) format _or_ PPK -- or instead of any file the Pageant process (the Putty version of ssh-agent) which in turn uses PPK. – dave_thompson_085 Jun 23 '23 at 07:13

1 Answers1

0

I have found a solution. I have upgraded the winscp. My Problem solved. Its the problem in winscp. Once i upgraded the problem solved..

Karthi Keyan
  • 127
  • 7