in reply to ssh key ( known_hosts ) through perl module

If Net::SSH doesn't do the job, you might want to use something like Expect to control the 'ssh' you have on your machine. See the tutorials section for a good intro on Expect.
  • Comment on Re: ssh key ( known_hosts ) through perl module