How do I get my key used to connect to my server moved from linux to windows

For most of the work I was using a linux boot rather then jumping through all the hoops with windows and servers but recently an issue came up and id like to be able to connect with multiple pc's via file zilla though I tried to add my key file and it says it is the wrong format same result with trying to convert the key on puttygen keep in mind the reason im having to do all this is because I created a data base on my windows boot via phpmyadmin and it will not show up when I boot the computer into linux any help is greatly appreciated

2 Replies

Hey there,

You would not be able to use the same key for two different local computers. The best way to accomplish what you want to do is to generate a new pubkey for your Windows machine and upload it to the Linode.

If you use Windows 10, you can enter the following command from the command line to generate a key - if you already have one, you can move on to the next step:

ssh-keygen -b 4096

Then from your local computer enter the following to upload the pubkey to the Linode:

scp C:\Users\MyUserName\.ssh/id_rsa.pub [email protected]$IP.v.4.ADDRESS:~/.ssh/authorized_keys

If you have an older version of Windows, you can use this guide to generate a new pubkey.

Yep… @asilverman has the right approach but not necessarily the right answer. You can edit ssh keys but you have to know what you're doing and install the edited key in the right places (on both machines).

I've done this in the past but my needs didn't exactly match the OPs. You need to take an extreme amount of care (and becoming proficient with Lish) in order to do it.

ssh keys are free and easy to generate (how many you can do in an hour is only limited by your typing speed)…do what @asilverman suggests.

-- sw

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct