I got a new Windows computer and installed putty on it. I exported the registry keys from the old computer and imported them to recover the Putty connections and avoid adding them manually.
I also copied the rsa public key .ppk to the new computer and selected it in the Auth section in putty, but I get the following error:
Unable to use key file "c:\path\to\id_rsa.ppk" (unable to open file)
I'm temped to regenerate the key pair again in the VPS server but I thought public keys could be used by any computer!
Am I missing something? Any help is appreciated.
Thanks!
Edit:
Plink output (plink -v username@hostname -i "c:\path\to\id_rsa.ppk") as requested by @Martin Prikryl:
We claim version: SSH-2.0-PuTTY_Release_0.70
Server version: SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.1
Using SSH protocol version 2
Doing ECDH key exchange with curve Curve25519 and hash SHA-256
Server also has ssh-ed25519/ecdsa-sha2-nistp256 host keys, but we don't know any of them
Host key fingerprint is:
ssh-rsa 2048 24:2a:c3:65:b9:9a:3e:5f:59:fc:dc:15:42:31:0b:a0
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:\path\to\id_rsa.ppk"
Using username "user".
Offered public key
Offer of public key accepted
Authenticating with public key "imported-openssh-key"
Sent public key signature
Access granted
Opening session as main channel
Opened main channel
Allocated pty (ospeed 38400bps, ispeed 38400bps)
Started a shell/command
Edit 2:
putty.exe -v username@hostname -i "c:\path\to\id_rsa.ppk" throws a timeout error.