# RSA key

**URL:** <https://resource.dopus.com/t/rsa-key/51671>\
**Category:** Help & Support\
**Created:** [July 5, 2024, 11:29am UTC](https://resource.dopus.com/t/rsa-key/51671 "2024-07-05T11:29:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![BeeVee](https://resource.dopus.com/user_avatar/resource.dopus.com/beevee/32/12938_2.png) [@BeeVee](https://resource.dopus.com/u/BeeVee)\
**Post date:** [July 5, 2024, 11:29am UTC](https://resource.dopus.com/t/rsa-key/51671/1 "2024-07-05T11:29:09Z")

</div>

Hey y'all,

I need to set up an sftp connection using an RSA key. Do I still need to use PuTTY (like I saw when I searched and found responses for DOpus 8 from Leo (plus ça change !)?

_B_

---

<div class="post-metadata">

**Author:** ![BeeVee](https://resource.dopus.com/user_avatar/resource.dopus.com/beevee/32/12938_2.png) [@BeeVee](https://resource.dopus.com/u/BeeVee)\
**Post date:** [July 5, 2024, 11:49am UTC](https://resource.dopus.com/t/rsa-key/51671/2 "2024-07-05T11:49:16Z")

</div>

I found where to put a keyfile, but it's still not working. I'll persevere...

_B_

---

<div class="post-metadata">

**Author:** ![BeeVee](https://resource.dopus.com/user_avatar/resource.dopus.com/beevee/32/12938_2.png) [@BeeVee](https://resource.dopus.com/u/BeeVee)\
**Post date:** [July 5, 2024, 12:26pm UTC](https://resource.dopus.com/t/rsa-key/51671/3 "2024-07-05T12:26:14Z")

</div>

Okay, here's my log file:

```auto
Opening Connection 161.35.211.60:22
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 3b:a0:b8:69:83:12:8a:47:33:8d:a3:7f:ff:fb:a9:15
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 "X:\Dropbox\LightWaveDigital\Site\Docs\ben_rsa"
Unable to use this key file (OpenSSH SSH-2 private key (new format))
Unable to use key file "X:\Dropbox\LightWaveDigital\Site\Docs\ben_rsa" (OpenSSH SSH-2 private key (new format))
Using username "ben".
Disconnected: No supported authentication methods available (server sent: publickey)
SSH: Fatal: Disconnected: No supported authentication methods available (server sent: publickey)
Connection closed

```

These lines:

```auto
Unable to use this key file (OpenSSH SSH-2 private key (new format))
Unable to use key file "X:\Dropbox\LightWaveDigital\Site\Docs\ben_rsa" (OpenSSH SSH-2 private key (new format))

```

are the ones posing the problem. I installed Filezilla and can connect to the remote site just fine (but now I need to get rid of the increasingly-spammy Filezilla, which has snuck Avast onto my machine and changed my default browser!)

_B_

---

<div class="post-metadata">

**Author:** ![Jon](https://resource.dopus.com/user_avatar/resource.dopus.com/jon/32/12713_2.png) [@Jon](https://resource.dopus.com/u/Jon)\
**Post date:** [July 5, 2024, 8:55pm UTC](https://resource.dopus.com/t/rsa-key/51671/4 "2024-07-05T20:55:07Z")

</div>

The key needs to be saved as a version 2 PPK file ( **Key / Parameters** for saving key files in PuttyGen).

 ![image](https://resource.dopus.com/uploads/default/original/3X/6/1/610f3578f7ccd86facd37d847f56f06c6b962625.png)

---

<div class="post-metadata">

**Author:** ![BeeVee](https://resource.dopus.com/user_avatar/resource.dopus.com/beevee/32/12938_2.png) [@BeeVee](https://resource.dopus.com/u/BeeVee)\
**Post date:** [July 5, 2024, 9:37pm UTC](https://resource.dopus.com/t/rsa-key/51671/5 "2024-07-05T21:37:24Z")

</div>

It's not me generating the key and because it works with Filezilla, they aren't bothered.

_B_

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [July 5, 2024, 9:39pm UTC](https://resource.dopus.com/t/rsa-key/51671/6 "2024-07-05T21:39:08Z")

</div>

You can load the existing key into PuttyGen and then save it back out in the v2 format to convert it.

---

<div class="post-metadata">

**Author:** ![BeeVee](https://resource.dopus.com/user_avatar/resource.dopus.com/beevee/32/12938_2.png) [@BeeVee](https://resource.dopus.com/u/BeeVee)\
**Post date:** [July 6, 2024, 12:00am UTC](https://resource.dopus.com/t/rsa-key/51671/7 "2024-07-06T00:00:58Z")

</div>

I don't know if I'm going to need to make a matching pair? Certainly the three tries I've had at fixing this now have failed, but it is getting on for 2 in the morning. I'll try again on Monday. Thanks for your help!

_B_

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [July 6, 2024, 12:19am UTC](https://resource.dopus.com/t/rsa-key/51671/8 "2024-07-06T00:19:59Z")

</div>

It doesn't affect the key at the other end. It's still the same public key, just saved to disk in a slightly different way.

---

<div class="post-metadata">

**Author:** ![BeeVee](https://resource.dopus.com/user_avatar/resource.dopus.com/beevee/32/12938_2.png) [@BeeVee](https://resource.dopus.com/u/BeeVee)\
**Post date:** [July 7, 2024, 9:01am UTC](https://resource.dopus.com/t/rsa-key/51671/9 "2024-07-07T09:01:34Z")

</div>

How can I make sure the details save are updated for new ftp connections? I tried changing the key and the ftp log says it's still trying the previous, unsuccessful key type.

_B_

---

<div class="post-metadata">

**Author:** ![BeeVee](https://resource.dopus.com/user_avatar/resource.dopus.com/beevee/32/12938_2.png) [@BeeVee](https://resource.dopus.com/u/BeeVee)\
**Post date:** [July 7, 2024, 11:46am UTC](https://resource.dopus.com/t/rsa-key/51671/10 "2024-07-07T11:46:33Z")

</div>

Okay, to get DOpus to use different versions of the key, I need to quit and restart DOpus.

---

<div class="post-metadata">

**Author:** ![BeeVee](https://resource.dopus.com/user_avatar/resource.dopus.com/beevee/32/12938_2.png) [@BeeVee](https://resource.dopus.com/u/BeeVee)\
**Post date:** [July 7, 2024, 11:48am UTC](https://resource.dopus.com/t/rsa-key/51671/11 "2024-07-07T11:48:34Z")

</div>

And none of the five choices work. ☹

---

<div class="post-metadata">

**Author:** ![Jon](https://resource.dopus.com/user_avatar/resource.dopus.com/jon/32/12713_2.png) [@Jon](https://resource.dopus.com/u/Jon)\
**Post date:** [July 7, 2024, 12:10pm UTC](https://resource.dopus.com/t/rsa-key/51671/12 "2024-07-07T12:10:33Z")

</div>

What five choices are you referring to?

---

<div class="post-metadata">

**Author:** ![BeeVee](https://resource.dopus.com/user_avatar/resource.dopus.com/beevee/32/12938_2.png) [@BeeVee](https://resource.dopus.com/u/BeeVee)\
**Post date:** [July 7, 2024, 1:01pm UTC](https://resource.dopus.com/t/rsa-key/51671/13 "2024-07-07T13:01:38Z")

</div>

![image](https://resource.dopus.com/uploads/default/original/3X/3/6/360cc9e21b37b00770a71685a61e170888696358.png)

The types of keys to generate?

---

<div class="post-metadata">

**Author:** ![Jon](https://resource.dopus.com/user_avatar/resource.dopus.com/jon/32/12713_2.png) [@Jon](https://resource.dopus.com/u/Jon)\
**Post date:** [July 7, 2024, 1:18pm UTC](https://resource.dopus.com/t/rsa-key/51671/14 "2024-07-07T13:18:02Z")

</div>

See the screenshot I posted above?

---

<div class="post-metadata">

**Author:** ![BeeVee](https://resource.dopus.com/user_avatar/resource.dopus.com/beevee/32/12938_2.png) [@BeeVee](https://resource.dopus.com/u/BeeVee)\
**Post date:** [July 7, 2024, 1:48pm UTC](https://resource.dopus.com/t/rsa-key/51671/15 "2024-07-07T13:48:38Z")

</div>

Ah, I see. It's still not connecting with the v2 RSA option, but I'll try the others. It is irritating that filezilla just gets through with no modification. Also that I have to quit and restart DOpus each time.

---

<div class="post-metadata">

**Author:** ![Jon](https://resource.dopus.com/user_avatar/resource.dopus.com/jon/32/12713_2.png) [@Jon](https://resource.dopus.com/u/Jon)\
**Post date:** [July 7, 2024, 7:56pm UTC](https://resource.dopus.com/t/rsa-key/51671/16 "2024-07-07T19:56:40Z")

</div>

I think those options are only relevant when generating a new key which isn't what you want to do. You want to load the existing key in ("Load an existing private key file"), and then resave it ("Save private key") in v2 format. The only option you should have to change is to set the key format to v2 (and that's only an option you have to change once, since it should remember that you've chosen that in the future).

---

<div class="post-metadata">

**Author:** ![BeeVee](https://resource.dopus.com/user_avatar/resource.dopus.com/beevee/32/12938_2.png) [@BeeVee](https://resource.dopus.com/u/BeeVee)\
**Post date:** [July 7, 2024, 11:13pm UTC](https://resource.dopus.com/t/rsa-key/51671/17 "2024-07-07T23:13:09Z")

</div>

That's what I did. It didn't work and I'm not sure why I did to change it in the first place?

---

<div class="post-metadata">

**Author:** ![BeeVee](https://resource.dopus.com/user_avatar/resource.dopus.com/beevee/32/12938_2.png) [@BeeVee](https://resource.dopus.com/u/BeeVee)\
**Post date:** [July 7, 2024, 11:16pm UTC](https://resource.dopus.com/t/rsa-key/51671/18 "2024-07-07T23:16:56Z")

</div>

This is what I get now:

```auto
Opening Connection 161.35.211.60:22
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 3b:a0:b8:69:83:12:8a:47:33:8d:a3:7f:ff:fb:a9:15
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 "X:\Dropbox\LightWaveDigital\Site\Docs\keys\Private3-SSH-1.ppk"
Using username "ben".
Offered public key
Server refused our key
Server refused our key
Disconnected: No supported authentication methods available (server sent: publickey)
SSH: Fatal: Disconnected: No supported authentication methods available (server sent: publickey)
Connection closed

```

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [July 7, 2024, 11:20pm UTC](https://resource.dopus.com/t/rsa-key/51671/19 "2024-07-07T23:20:06Z")

</div>

"Server refused our key" wasn't in the log before now, which means it's a different error to before.

Does the same key file work in FileZilla? (I know the original key did, but it's worth testing with the one you're using now in case it's different.)

---

<div class="post-metadata">

**Author:** ![BeeVee](https://resource.dopus.com/user_avatar/resource.dopus.com/beevee/32/12938_2.png) [@BeeVee](https://resource.dopus.com/u/BeeVee)\
**Post date:** [July 7, 2024, 11:23pm UTC](https://resource.dopus.com/t/rsa-key/51671/20 "2024-07-07T23:23:54Z")

</div>

Yes, that still connected in Filezilla.

[Next page](https://resource.dopus.com/t/rsa-key/51671.md?page=2)
