Invalid key error #42

Closed
Ashesh opened this Issue Feb 19, 2012 · 5 comments

Projects

None yet

3 participants

@Ashesh
Ashesh commented Feb 19, 2012

Using Win7 machine. Getting an invalid key error repeatedly - tried putty, tried github public key. everything fails. Here is my key
ssh2-dsa AAAAB3NzaC1kc3MAAACAQ4+Shvexym3WoYIUrS+GxgMWCpEPf9Mvl+qLVUweMHTl29svEdEuWq0KBV4kmC8RR+QKJOf+Lcej0wCcMvlsJv+GcckYmathxZoLe3yCzNrP5EiqcTERNguKW5GPRcYxjWVZKWOcw6Aj7gRL0EhhIKB2lb6Tctxe/nYia+vTWn0AAAAVAIEde/D7ZDRvzrfy7Ez0NXjdGmbjAAAAgD5cQI0yRMUX03posZGs/gNmpo4Xcj2dP7/HPkLAKr8qFQlsWDKrYpvGLp6OlMjHc6Olgv4XXUyDySB0mPw0ErjcSMxTPub4UW4LueXYUeaIc5wE7v3dRs0F25IF0+ituuMG31ZUG84C1aPMEqW0IrPDQJ2DiMxqvXDaY9jwhoRIAAAAgAU+edahu6GtQbUzSSk63bPt0LX2rn4PioJHtFRYKVRDBA3ULnpXPmyrg5K/MYLUAXoNft6L7AQlv6rqbMwA4J2j4TuG+fpWIoG7Y16z19jhN8PE9fVfjpg1OOhpK8qBjKmrRxUB0oCNZNg6PAH/53BrfFPrgOMObohaV541TQkA ashesh@10wickets.com

@Ashesh
Ashesh commented Feb 19, 2012

Sorry, this is the one that is failing
ssh-dss AAAAB3NzaC1kc3MAAACAQ4+Shvexym3WoYIUrS+GxgMWCpEPf9Mvl+qLVUweMHTl29svEdEuWq0KBV4kmC8RR+QKJOf+Lcej0wCcMvlsJv+GcckYmathxZoLe3yCzNrP5EiqcTERNguKW5GPRcYxjWVZKWOcw6Aj7gRL0EhhIKB2lb6Tctxe/nYia+vTWn0AAAAVAIEde/D7ZDRvzrfy7Ez0NXjdGmbjAAAAgD5cQI0yRMUX03posZGs/gNmpo4Xcj2dP7/HPkLAKr8qFQlsWDKrYpvGLp6OlMjHc6Olgv4XXUyDySB0mPw0ErjcSMxTPub4UW4LueXYUeaIc5wE7v3dRs0F25IF0+ituuMG31ZUG84C1aPMEqW0IrPDQJ2DiMxqvXDaY9jwhoRIAAAAgAU+edahu6GtQbUzSSk63bPt0LX2rn4PioJHtFRYKVRDBA3ULnpXPmyrg5K/MYLUAXoNft6L7AQlv6rqbMwA4J2j4TuG+fpWIoG7Y16z19jhN8PE9fVfjpg1OOhpK8qBjKmrRxUB0oCNZNg6PAH/53BrfFPrgOMObohaV541TQkA ssh-ashesh@10wickets.com

@Ashesh
Ashesh commented Feb 19, 2012

Now it throws "failed to authenticate"!

@Ashesh
Ashesh commented Feb 19, 2012

Something is happening. I am getting this error now.

F:/Owner/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/net-ssh-2.3.0/lib/net/ssh/transport/sess
ion.rb:66:in initialize': getaddrinfo: No such host is known. (SocketError) from F:/Owner/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/net-ssh-2.3.0/lib/net/ssh/t ransport/session.rb:66:inopen'
from F:/Owner/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/net-ssh-2.3.0/lib/net/ssh/t
ransport/session.rb:66:in block in initialize' from F:/Owner/Programs/Ruby193/lib/ruby/1.9.1/timeout.rb:54:intimeout'
from F:/Owner/Programs/Ruby193/lib/ruby/1.9.1/timeout.rb:99:in timeout' from F:/Owner/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/net-ssh-2.3.0/lib/net/ssh/t ransport/session.rb:66:ininitialize'
from F:/Owner/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/net-ssh-2.3.0/lib/net/ssh.r
b:186:in new' from F:/Owner/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/net-ssh-2.3.0/lib/net/ssh.r b:186:instart'
from F:/Owner/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/net-ssh-gateway-1.1.0/lib/n
et/ssh/gateway.rb:74:in initialize' from F:/Owner/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/localtunnel-0.3/lib/localtu nnel/tunnel.rb:44:innew'
from F:/Owner/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/localtunnel-0.3/lib/localtu
nnel/tunnel.rb:44:in start_tunnel' from F:/Owner/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/localtunnel-0.3/bin/localtu nnel:47:in<top (required)>'
from F:/Owner/Programs/Ruby193/bin/localtunnel:19:in load' from F:/Owner/Programs/Ruby193/bin/localtunnel:19:in

'

@Youdaman

Solution

Open PuTTYgen, load your key, and then at the top of that window there is a box that says "Public key for pasting into OpenSSH authorized keys file:" -- replace your id_rsa.pub contents with this (maybe backup the original if you need to).

@progrium
Owner
progrium commented Dec 1, 2012

Keys aren't required for the new beta version! Try it with the latest README.

@progrium progrium closed this Dec 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment