Before we go to ssh with public key authentication, correct the typo in your post Re^2: help to deal with ssh connection, its Net::SSH not set:ssh
You can get the doc for Net::SSH here Net::SSH
In that doc its been explained how to generate public key and copy that into your remote machine. If you have done those steps, post us what error your script report.
In reply to Re^3: help to deal with ssh connection
by vinoth.ree
in thread help to deal with ssh connection
by mitchreward
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |