Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "net/ssh"
- hostname= "sftp-dev.gethightower.com"
- username= "ftp-client-test"
- password= "<fill in>"
- failures = 0
- 1000.times do
- begin
- Net::SSH.start(hostname, username, password: password, non_interactive: true)
- rescue => ex
- puts ex.message
- failures += 1
- end
- end
- puts failures
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement