[resolved] SSH public/private key authentication |
Site Admin
|
It's correct, client needs private and public keys while server needs only public one. That's why it's called public-key-authentication.
First you need to check "Public Key (ssh2)" on the Keys tab->SSH Defaults (see accounts window), then remove all pre-generated keys and add your private key into Host key files field and your public key into Public identity files input. You may also update Certificate access pass phrase or leave it empty. In latter case, IDE will ask you for the pass phrase each time you log in. |
||||||||||||
_________________ The PHP IDE team |
|
Hi Dmitri,
The private-key file I was using was specific to PuTTY which I hadn't realised. I've got it working in PhpEd now. For anyone else in the same predicament, I had to export the key from PuTTYgen using the "Conversion" -> "Export OpenSSH Key" menu option, and add the exported file to PhpEd as my public key file. I haven't needed a host key file. Thanks, Andy |
||||||||||||
|
Site Admin
|
I'd recommend you to check your key file then. In some cases, private key and public one are added to the same file one by one. It's also supported by PhpED but may break security if you copy it into your server as server needs only public key, nothing else. |
||||||||||||||
_________________ The PHP IDE team |
|
Nope. The PuTTY key file stores both, but only so it can be read back by PuTTYgen. When it authenticates it only sends the private part. As you can see below, the server only has the public hash, and my private key only the private part. In my private key file used by PhpEd:
In the authorized_keys file on the server:
|
||||||||||||||||||||
|
Site Admin
|
it should never send private key, only public one , the one you added to authorized_keys. |
||||||||||||||
_________________ The PHP IDE team |
|
Oooh yeah true, my bad lol |
||||||||||||||||
|
[resolved] SSH public/private key authentication |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by