scttnlsn / dandelion

Incremental Git repository deployment.
http://scttnlsn.github.io/dandelion
MIT License
738 stars 60 forks source link

unsupported key type `csh-rsa' #82

Closed jdpedrie closed 10 years ago

jdpedrie commented 10 years ago

Hi,

Attempting to check the status of an environment configured via SFTP throws this error:

Is this a know issue? Is there a workaround?

/Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/net-ssh-2.8.0/lib/net/ssh/buffer.rb:269:in `read_keyblob': unsupported key type `csh-rsa' (NotImplementedError)
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/net-ssh-2.8.0/lib/net/ssh/buffer.rb:239:in `read_key'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/net-ssh-2.8.0/lib/net/ssh/key_factory.rb:120:in `load_data_public_key'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/net-ssh-2.8.0/lib/net/ssh/key_factory.rb:101:in `load_public_key'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/net-ssh-2.8.0/lib/net/ssh/authentication/key_manager.rb:211:in `block in load_identities'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/net-ssh-2.8.0/lib/net/ssh/authentication/key_manager.rb:207:in `map'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/net-ssh-2.8.0/lib/net/ssh/authentication/key_manager.rb:207:in `load_identities'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/net-ssh-2.8.0/lib/net/ssh/authentication/key_manager.rb:100:in `each_identity'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/net-ssh-2.8.0/lib/net/ssh/authentication/methods/publickey.rb:19:in `authenticate'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/net-ssh-2.8.0/lib/net/ssh/authentication/session.rb:79:in `block in authenticate'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/net-ssh-2.8.0/lib/net/ssh/authentication/session.rb:66:in `each'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/net-ssh-2.8.0/lib/net/ssh/authentication/session.rb:66:in `authenticate'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/net-ssh-2.8.0/lib/net/ssh.rb:204:in `start'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/net-sftp-2.1.2/lib/net/sftp.rb:31:in `start'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/dandelion-0.4.4/lib/dandelion/adapter/sftp.rb:70:in `sftp_client'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/dandelion-0.4.4/lib/dandelion/adapter/sftp.rb:18:in `initialize'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/dandelion-0.4.4/lib/dandelion/adapter.rb:24:in `new'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/dandelion-0.4.4/lib/dandelion/adapter.rb:24:in `create_adapter'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/dandelion-0.4.4/lib/dandelion/cli.rb:18:in `adapter'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/dandelion-0.4.4/lib/dandelion/cli.rb:34:in `workspace'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/dandelion-0.4.4/lib/dandelion/cli.rb:62:in `execute!'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1@global/gems/dandelion-0.4.4/bin/dandelion:8:in `<top (required)>'
    from /Users/jpedrie/.rvm/rubies/ruby-2.1.1/bin/dandelion:23:in `load'
    from /Users/jpedrie/.rvm/rubies/ruby-2.1.1/bin/dandelion:23:in `<main>'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
    from /Users/jpedrie/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
scttnlsn commented 10 years ago

Do you have a typo in your SSH key? I think it should read ssh-rsa.

jdpedrie commented 10 years ago

Turns out my SSH key was corrupt or somehow invalid. Regenerating them fixed the problem. Sorry for the noise.