Try login as the apache user on the local machine and connecting to the remote host from the command line.
# su - apache $ ssh -l user 192.168.1.181
Once you get that to work, you should be able to connect from your script using Net::SSH::Expect!
In reply to Re^7: Net::SSH::Expect login using SSH keys
by salva
in thread Net::SSH::Expect login using SSH keys
by ashok.g
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |