Skip to content

Instantly share code, notes, and snippets.

@thomasstr
Created May 22, 2013 17:52
Show Gist options
  • Save thomasstr/5629488 to your computer and use it in GitHub Desktop.
Save thomasstr/5629488 to your computer and use it in GitHub Desktop.
def test
hostname = "10.0.0.4"
username = "root"
password = "xxxxxx"
Net::SSH.start( hostname, username, :password => password ) do|ssh|
result = ssh.exec!('ls -la')
puts result
end
end
helper_method :test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment