Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'net/ssh'
- Net::SSH.start( 'targethost',
- :user => 'tester',
- :auth_methods => ['publickey']) do |ssh|
- puts "Connected as tester!"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement