Created
January 25, 2019 20:14
-
-
Save t-readyroc/8373e7cde47a9ee8a8689b4d38b24972 to your computer and use it in GitHub Desktop.
knife ssh debug/stack trace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user@laptop:~> knife ssh -VV -a fqdn 'name:instance31' uptime | |
INFO: Using configuration from /Users/user/.chef/knife.rb | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request | |
DEBUG: Signing the request as user | |
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request | |
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request | |
DEBUG: Initiating POST to https://chef.company.com/organizations/co/search/node?q=name:instance31&sort=X_CHEF_id_CHEF_X%20asc&start=0 | |
DEBUG: ---- HTTP Request Header Data: ---- | |
DEBUG: Content-Type: application/json | |
DEBUG: Accept: application/json | |
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 | |
DEBUG: X-Ops-Server-API-Version: 1 | |
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1; | |
DEBUG: X-OPS-USERID: user | |
DEBUG: X-OPS-TIMESTAMP: 2019-01-25T20:04:38Z | |
DEBUG: X-OPS-CONTENT-HASH: mkB5sT1Ld8CterEkFMilj1HozTA= | |
DEBUG: X-OPS-AUTHORIZATION-1: ZVkL+X2gsuB37g4FnLlg9Ue11UTRbdyvqhNTxZqCfocOfk+Lsu0lJ6mtScm6 | |
DEBUG: X-OPS-AUTHORIZATION-2: VRiJshM6OgmSWP0GDOU/jhJZdym/+IQyWb10u7A6EbmbcWYY8alm/T0mMBes | |
DEBUG: X-OPS-AUTHORIZATION-3: EVybr3DSz7TASYXI1NTjF3PYUNexgw+CWHLrgJN1Fg0PCqcZam/OVSRS2740 | |
DEBUG: X-OPS-AUTHORIZATION-4: Vrmzuj7bXwM59C372aT2KW2n4wBdfUvbvp2EAm6uB3kWDlqg7q4U5BOMLyKK | |
DEBUG: X-OPS-AUTHORIZATION-5: uL9tv28l0sE9K/GgSNq6+Zt0o50s2FX472jaj2sjPRkP3EGXVZX0KBbiM7SB | |
DEBUG: X-OPS-AUTHORIZATION-6: dvnfJ8ejlPNmETHDfOrkIQOZbW4wTth1uX0A1Ux9vA== | |
DEBUG: HOST: chef.company.com:443 | |
DEBUG: X-REMOTE-REQUEST-ID: c838c8b3-570c-4c5e-bac0-7a2599f449dd | |
DEBUG: Content-Length: 77 | |
DEBUG: ---- End HTTP Request Header Data ---- | |
DEBUG: ---- HTTP Status and Header Data: ---- | |
DEBUG: HTTP 1.1 200 OK | |
DEBUG: content-encoding: gzip | |
DEBUG: content-type: application/json | |
DEBUG: date: Fri, 25 Jan 2019 20:04:38 GMT | |
DEBUG: server: openresty/1.11.2.1 | |
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.10.0 | |
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"} | |
DEBUG: content-length: 249 | |
DEBUG: connection: Close | |
DEBUG: ---- End HTTP Status/Header Data ---- | |
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response | |
DEBUG: Content-Length validated correctly. | |
DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response | |
DEBUG: Decompressing gzip response | |
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response | |
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response | |
DEBUG: Using node attribute 'fqdn' as the ssh target: instance31.inf.company.com | |
DEBUG: Adding instance31.inf.company.com | |
DEBUG: establishing connection to instance31.inf.company.com:22 | |
DEBUG: connection established | |
INFO: negotiating protocol version | |
DEBUG: local is `SSH-2.0-Ruby/Net::SSH_4.1.0 x86_64-darwin14' | |
DEBUG: remote is `SSH-2.0-OpenSSH_7.4' | |
INFO: sending KEXINIT | |
DEBUG: queueing packet nr 0 type 20 len 1164 | |
DEBUG: sent 1168 bytes | |
DEBUG: read 1288 bytes | |
DEBUG: received packet nr 0 type 20 len 1284 | |
INFO: got KEXINIT from server | |
INFO: negotiating algorithms | |
DEBUG: negotiated: | |
* kex: diffie-hellman-group-exchange-sha1 | |
* host_key: ecdsa-sha2-nistp256 | |
* encryption_server: aes128-cbc | |
* encryption_client: aes128-cbc | |
* hmac_client: hmac-sha1 | |
* hmac_server: hmac-sha1 | |
* compression_client: none | |
* compression_server: none | |
* language_client: | |
* language_server: | |
DEBUG: exchanging keys | |
DEBUG: queueing packet nr 1 type 34 len 20 | |
DEBUG: sent 24 bytes | |
DEBUG: read 152 bytes | |
DEBUG: received packet nr 1 type 31 len 148 | |
DEBUG: queueing packet nr 2 type 32 len 140 | |
DEBUG: sent 144 bytes | |
DEBUG: read 376 bytes | |
DEBUG: received packet nr 2 type 33 len 356 | |
DEBUG: queueing packet nr 3 type 21 len 20 | |
DEBUG: sent 24 bytes | |
DEBUG: received packet nr 3 type 21 len 12 | |
DEBUG: beginning authentication of `user' | |
DEBUG: queueing packet nr 4 type 5 len 28 | |
DEBUG: sent 52 bytes | |
DEBUG: read 52 bytes | |
DEBUG: received packet nr 4 type 6 len 28 | |
DEBUG: trying none | |
DEBUG: queueing packet nr 5 type 50 len 44 | |
DEBUG: sent 68 bytes | |
DEBUG: read 84 bytes | |
DEBUG: received packet nr 5 type 51 len 60 | |
DEBUG: allowed methods: publickey,gssapi-keyex,gssapi-with-mic | |
DEBUG: none failed | |
DEBUG: trying publickey | |
DEBUG: connecting to ssh-agent | |
DEBUG: sending agent request 1 len 47 | |
DEBUG: received agent packet 5 len 1 | |
DEBUG: sending agent request 11 len 0 | |
DEBUG: received agent packet 12 len 5 | |
DEBUG: trying publickey (f0:95:13:e4:61:6e:2d:61:48:92:c4:3a:0e:b8:24:87) | |
DEBUG: queueing packet nr 6 type 50 len 348 | |
DEBUG: sent 372 bytes | |
DEBUG: read 324 bytes | |
DEBUG: received packet nr 6 type 60 len 300 | |
WARNING: Failed to connect to instance31.inf.company.com -- RbNaCl::LengthError: key was 257 bytes (Expected 32) | |
DEBUG: /Users/user/.chefdk/gem/ruby/2.3.0/gems/rbnacl-4.0.2/lib/rbnacl/signatures/ed25519/verify_key.rb:33:in `initialize' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/ed25519.rb:25:in `new' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/ed25519.rb:25:in `initialize' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/ed25519.rb:128:in `new' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/ed25519.rb:128:in `initialize' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/ed25519.rb:152:in `new' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/ed25519.rb:152:in `read' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/key_factory.rb:113:in `block in classify_key' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/key_factory.rb:60:in `load_data_private_key' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/key_factory.rb:43:in `load_private_key' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/key_manager.rb:142:in `sign' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/methods/publickey.rb:62:in `authenticate_with' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/methods/publickey.rb:20:in `block in authenticate' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/key_manager.rb:122:in `block in each_identity' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/key_manager.rb:119:in `each' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/key_manager.rb:119:in `each_identity' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/methods/publickey.rb:19:in `authenticate' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/session.rb:80:in `block in authenticate' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/session.rb:66:in `each' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/authentication/session.rb:66:in `authenticate' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh.rb:237:in `start' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:186:in `new_session' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/session.rb:488:in `next_session' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:138:in `session' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/session_actions.rb:36:in `block (2 levels) in sessions' | |
DEBUG: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/logging-2.2.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment