My suggestion: use Net::SSH::Expect, it has an example for interactive commands right there in documentation Synopsis.
In reply to Re: ssh using expect
by tirwhan
in thread ssh using expect
by bala_999
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |