|
|
| Problems? Is your data what you think it is? | |
| PerlMonks |
Re: Net:SSH2 channelsby wjw (Priest) |
| on Aug 07, 2018 at 21:13 UTC ( [id://1220039]=note: print w/replies, xml ) | Need Help?? |
|
. I gave this a shot in my environment with positive results. This is on a Linux box running v5.22.1 Most of the code is from the Synopsis on MCPAN. I tried this connecting to both a regular Linux box and a Raspberry Pi. The Pi does not have keys set up on it, but the Linux box does. I thought perhaps the auth method might be a problem when a uname/passwd combo is handed to a machine which is expecting a ssh key. But that is apparently not a problem. Anyway, the code itself is tested and functions in my environment so, that may give you a known starting point. Hope that is somehow helpful... Edit: I have not used Net::SSH previously, so this is a learning experience for me. Zentara's post is a good one. Also, there is this node which provides some really good examples to try -> A little demo for Net::SSH2
...the majority is always wrong, and always the last to know about it... A solution is nothing more than a clearly stated problem...
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||