From: Hassan Schroeder Date: 2010-05-19T06:59:13+09:00 Subject: Re: (Net::SSH::HostKeyMismatch On Tue, May 18, 2010 at 2:19 PM, Kamal Ahmed wrote: > I actually FOUND the solution: You seem to have misspelled "DOS vector" :-) >  Net::SSH.start( value_hosts, USER, :password => PASS ,  :paranoid => > false ) do|ssh | >                        # The rescue block is used to ignore the change > in key and still login using ssh >                        begin >                        rescue Net::SSH::HostKeyMismatch => e >                          puts "remembering new key: #{e.fingerprint}" >                          e.remember_host! >                          retry >                        end And wouldn't it be amusing if a malicious compromised host just kept on providing a different host key to each request ... -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com twitter: @hassan