Advertisement
Guest User

Untitled

a guest
Apr 4th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.18 KB | None | 0 0
  1. require 'net/ssh'
  2.  
  3. Net::SSH.start( 'targethost',
  4.                 :user => 'tester',
  5.                 :auth_methods => ['publickey']) do |ssh|
  6.     puts "Connected as tester!"
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement