Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: basic openssh connectivity

by salva (Canon)
on Jul 26, 2019 at 08:26 UTC ( [id://11103425]=note: print w/replies, xml ) Need Help??


in reply to basic openssh connectivity

Net::OpenSSH does not work on Windows!

Your options there are Net::SSH::Perl, Net::SSH2 and Net::SSH::Any.

Replies are listed 'Best First'.
Re^2: basic openssh connectivity
by BrianDStark (Novice) on Jul 29, 2019 at 17:21 UTC

    Thanks, I was suspecting that would be the ultimate answer. Only Net::SSH::Any appears to be built for Windows, I was able to get a handle back from the constructor, but when I ran capture I got the message:

    "PTYs are not supported on Windows"

    Researching that message sent me down another rat hole. Is there anyone who uses SSH with ActiveState perl under windows 64 to log into remote Linux servers with a script? If so could you tell me which package you use and how you installed it? If no one is successfully using SSH with ActiveState. How about Strawberry?

    Brian

      Both Net::SSH2 and Net::SSH::Perl can be installed on Windows, though doing it is not easy, specially with ActiveState Perl.

      Net::SSH2 is included with Strawberry Perl.

      Net::SSH::Any does not handle the SSH connection by itself but delegates it to some module implementing the SSH protocol (currently Net::SSH2 or Net::OpenSSH) or to some external command as plink or ssh. Every backend has its limitations. For instance, only a few ones support password authentication.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11103425]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-18 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found