Skip to content

Instantly share code, notes, and snippets.

@zyriuse75
Created January 8, 2014 16:16
Show Gist options
  • Save zyriuse75/1a323065c9d6872ee623 to your computer and use it in GitHub Desktop.
Save zyriuse75/1a323065c9d6872ee623 to your computer and use it in GitHub Desktop.
def connect_sql
Net::SSH.start( @host, @user, :port=>22, :verbose => :debug) do |ssh|
puts ssh.exec!("./root/scripts/MysqlCleanInstance.sh #{@uid}")
end
end
#------------------#
the error
D, [2014-01-08T16:06:14.434807 #18651] DEBUG -- tcpsocket[3faf82f57690]: received packet nr 5 type 51 len 44
D, [2014-01-08T16:06:14.434954 #18651] DEBUG -- net.ssh.authentication.session[3faf82f472cc]: allowed methods: publickey,password
D, [2014-01-08T16:06:14.435023 #18651] DEBUG -- net.ssh.authentication.methods.keyboard_interactive[3faf82f44964]: keyboard-interactive failed
E, [2014-01-08T16:06:14.435139 #18651] ERROR -- net.ssh.authentication.session[3faf82f472cc]: all authorization methods failed (tried none, publickey, hostbased, password, keyboard-interactive)
/var/lib/gems/1.8/gems/net-ssh-2.7.0/lib/net/ssh.rb:215:in `start': Net::SSH::AuthenticationFailed (Net::SSH::AuthenticationFailed)
from clean_instance.rb:87:in `connect_sql'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment