Hi,
Where i work, the OS installs every week, sometimes many times a week. since we
develop our own kernel and there are hundreds of hosts.
But i did find the resolution.
Here it is:
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
Hope this helps some one else also.
Thanks,
-Kamal.
________________________________
From: Joshua J. Kugler <[email protected]>
To: [email protected]
Sent: Tue, May 18, 2010 2:36:06 PM
Subject: [capistrano] Re: HostKeyMismatch
On Monday 17 May 2010, kahmed elucidated thus:
> What i am trying to accomplish is to login via ssh, even of the ssh
> exchange key is no longer valid.
> since the OS was reinstalled.
I can't imagine OS reinstalls happen very often. Can you refresh the
keys when this happens?
j
--
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/ ID 0x73B13B6A
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to
[email protected] more options, visit this group at
http://groups.google.com/group/capistrano?hl=en
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/capistrano?hl=en