i try to log in to sftp with key
it works nice on my linux client but dopus report an error
log:
打开连接
Server version: SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.10
Using SSH protocol version 2
We claim version: SSH-2.0-PuTTY_Directory_Opus
Server supports delayed compression; will try this later
Doing ECDH key exchange with curve Curve25519 and hash SHA-256
Server also has ecdsa-sha2-nistp256 host key, but we don't know it
Host key fingerprint is:
ssh-ed25519 256 55:fa:24:1
Initialised AES-256 SDCTR client->server encryption
Initialised HMAC-SHA-256 client->server MAC algorithm
Initialised AES-256 SDCTR server->client encryption
Initialised HMAC-SHA-256 server->client MAC algorithm
Reading key file "D:\Key\zhy-pc-g16.pem"
Unable to use this key file (OpenSSH SSH-2 private key (old PEM format))
Unable to use key file "D:\Key\zhy-pc-g16.pem" (OpenSSH SSH-2 private key (old PEM format))
Using username "root".
Disconnected: No supported authentication methods available (server sent: publickey)
SSH: Fatal: Disconnected: No supported authentication methods available (server sent: publickey)
连接关闭
打开连接
Unable to use this key file (OpenSSH SSH-2 private key (old PEM format))
That means the key file is in a format Opus doesn't understand.
You can use PuttyGen.exe (part of PuTTY) to load and convert keys between at least some formats. I am not sure if it handles PEM or not, as I've not run into those before.
The key file at the other end (i.e. on the server) does not need to change, and no new key normally needs to be generated. It's just a matter of loading it in and saving it back out in a different format.
Note that, when saving the key out, Opus currently requires the PPK V2 format, not V3.

