Обсуждение: SSH connection problem
Hi, I'm trying to setup SSH connection in pgAdmin but i get this error:
Unable to extract public key from private key file: Wrong passphrase or invalid/unrecognized private file format
I'm running pgAdmin 1.22.1 (Feb 29 2016, rev: REL-1_22_1), windows 8.1
and authentication with private key fileThe passphrase I provide is of course correct, the connection works in putty with this file. I generated it in puttygen.
<div dir="ltr">No it's the private key. Exactly the same as with my putty configuration which works.<br /><br /><br /><divclass="gmail_quote"><div dir="ltr">pt., 11.03.2016 o 14:23 użytkownik Wolfe, Andrew <<a href="mailto:awolfe@silversky.com">awolfe@silversky.com</a>>napisał:<br /></div><blockquote class="gmail_quote" style="margin:00 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Did you perhaps give pgAdmin the public key insteadof the private key file?<br /><br /> > On Mar 11, 2016, at 06:46, Marcin Krawczyk <<a href="mailto:jankes.mk@gmail.com"target="_blank">jankes.mk@gmail.com</a>> wrote:<br /> ><br /> > Hi, I'm tryingto setup SSH connection in pgAdmin but i get this error:<br /> ><br /> > Unable to extract public key from privatekey file: Wrong passphrase or invalid/unrecognized private file format<br /> ><br /> > I'm running pgAdmin 1.22.1(Feb 29 2016, rev: REL-1_22_1), windows 8.1<br /> > and authentication with private key file<br /> ><br /> >The passphrase I provide is of course correct, the connection works in putty with this file. I generated it in puttygen.<br/> ><br /><br /><br /> Please consider the environment before printing this email. This message should beregarded as confidential. If you have received this email in error, please notify the sender and destroy it immediately.Statements of intent shall only become binding when confirmed in hard copy by an authorized signatory. The contentsof this email may relate to dealings with other companies under the control of BAE Systems Applied Intelligence Limited,details of which can be found at <a href="http://www.baesystems.com/Businesses/index.htm" rel="noreferrer" target="_blank">http://www.baesystems.com/Businesses/index.htm</a>.<br/></blockquote></div></div>
On Fri, Mar 11, 2016 at 1:27 PM, Marcin Krawczyk <jankes.mk@gmail.com> wrote: > No it's the private key. Exactly the same as with my putty configuration > which works. If memory serves, Putty uses keys that are in an unusual format. pgAdmin needs standard SSH formatted keys - I believe one of the Putty tools will convert for you. > pt., 11.03.2016 o 14:23 użytkownik Wolfe, Andrew <awolfe@silversky.com> > napisał: >> >> Did you perhaps give pgAdmin the public key instead of the private key >> file? >> >> >> > On Mar 11, 2016, at 06:46, Marcin Krawczyk <jankes.mk@gmail.com> wrote: >> > >> > Hi, I'm trying to setup SSH connection in pgAdmin but i get this error: >> > >> > Unable to extract public key from private key file: Wrong passphrase or >> > invalid/unrecognized private file format >> > >> > I'm running pgAdmin 1.22.1 (Feb 29 2016, rev: REL-1_22_1), windows 8.1 >> > and authentication with private key file >> > >> > The passphrase I provide is of course correct, the connection works in >> > putty with this file. I generated it in puttygen. >> > >> >> >> Please consider the environment before printing this email. This message >> should be regarded as confidential. If you have received this email in >> error, please notify the sender and destroy it immediately. Statements of >> intent shall only become binding when confirmed in hard copy by an >> authorized signatory. The contents of this email may relate to dealings with >> other companies under the control of BAE Systems Applied Intelligence >> Limited, details of which can be found at >> http://www.baesystems.com/Businesses/index.htm. -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company
<p dir="ltr">Thank you, it works with open ssh format. I've converted with puttygen.<br /><br /><div class="gmail_quote"><divdir="ltr">pt., 11 mar 2016, 15:30 użytkownik Dave Page <<a href="mailto:dpage@pgadmin.org">dpage@pgadmin.org</a>>napisał:<br /></div><blockquote class="gmail_quote" style="margin:00 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Mar 11, 2016 at 1:27 PM, Marcin Krawczyk <<ahref="mailto:jankes.mk@gmail.com" target="_blank">jankes.mk@gmail.com</a>> wrote:<br /> > No it's the privatekey. Exactly the same as with my putty configuration<br /> > which works.<br /><br /> If memory serves, Putty useskeys that are in an unusual format.<br /> pgAdmin needs standard SSH formatted keys - I believe one of the Putty<br />tools will convert for you.<br /><br /> > pt., 11.03.2016 o 14:23 użytkownik Wolfe, Andrew <<a href="mailto:awolfe@silversky.com"target="_blank">awolfe@silversky.com</a>><br /> > napisał:<br /> >><br /> >>Did you perhaps give pgAdmin the public key instead of the private key<br /> >> file?<br /> >><br />>><br /> >> > On Mar 11, 2016, at 06:46, Marcin Krawczyk <<a href="mailto:jankes.mk@gmail.com" target="_blank">jankes.mk@gmail.com</a>>wrote:<br /> >> ><br /> >> > Hi, I'm trying to setup SSH connectionin pgAdmin but i get this error:<br /> >> ><br /> >> > Unable to extract public key from privatekey file: Wrong passphrase or<br /> >> > invalid/unrecognized private file format<br /> >> ><br/> >> > I'm running pgAdmin 1.22.1 (Feb 29 2016, rev: REL-1_22_1), windows 8.1<br /> >> > and authenticationwith private key file<br /> >> ><br /> >> > The passphrase I provide is of course correct,the connection works in<br /> >> > putty with this file. I generated it in puttygen.<br /> >> ><br/> >><br /> >><br /> >> Please consider the environment before printing this email. This message<br/> >> should be regarded as confidential. If you have received this email in<br /> >> error, pleasenotify the sender and destroy it immediately. Statements of<br /> >> intent shall only become binding when confirmedin hard copy by an<br /> >> authorized signatory. The contents of this email may relate to dealings with<br/> >> other companies under the control of BAE Systems Applied Intelligence<br /> >> Limited, detailsof which can be found at<br /> >> <a href="http://www.baesystems.com/Businesses/index.htm" rel="noreferrer"target="_blank">http://www.baesystems.com/Businesses/index.htm</a>.<br /><br /><br /><br /> --<br /> DavePage<br /> Blog: <a href="http://pgsnake.blogspot.com" rel="noreferrer" target="_blank">http://pgsnake.blogspot.com</a><br/> Twitter: @pgsnake<br /><br /> EnterpriseDB UK: <a href="http://www.enterprisedb.com"rel="noreferrer" target="_blank">http://www.enterprisedb.com</a><br /> The Enterprise PostgreSQLCompany<br /></blockquote></div>