Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

What is SSH? What Perl modules exist for it?

by Gorby (Monk)
on Oct 30, 2003 at 19:05 UTC ( #303360=perlquestion: print w/ replies, xml ) Need Help??
Gorby has asked for the wisdom of the Perl Monks concerning the following question:

Hello Wise Monks. I've been using sockets in perl to communicate with other servers through the internet. Recently, I've come across something called SSH. It's supposed to be a more "secure" way of connecting. What is SSH and how do I connect to another machine in perl using SSH? Is there a module for this?

Thanks in advance for your wisdom.

Gorby

janitored by ybiC: Retitle from "SSH?", minor format cleanup to match intended appearance

Comment on What is SSH? What Perl modules exist for it?
Re: What is SSH? What Perl modules exist for it?
by castaway (Parson) on Oct 30, 2003 at 19:12 UTC
    SSH stands for Secure SHell, and is similar to telnet, except that it encrypts the data sent over the socket using one of a variety of encryption algorithms (which you can choose in the setup).

    There are a few modules for Perl, notably Net::SSH which is a wrapper around the unix 'ssh' command, and needs ssh to also be installed. There is also Net::SSH::Perl which is a pure perl implementation, and needs several other encryption modules to work.

    You'll also need to make sure that an ssh server is actually running on the machines that you connect to.

    C.

    (More info from http://www.ssh.com and http://www.openssh.org )

      similar to telnet, except that it encrypts the data

      And it has a feature set that, by far, supercedes telnet including things like tcp (and x11) port forwarding, compression, and .rhosts (or .shosts) authentication to name a few.

      -sauoq
      "My two cents aren't worth a dime.";
      
Re: What is SSH? What Perl modules exist for it?
by phydeauxarff (Priest) on Oct 30, 2003 at 19:15 UTC
    for information on SSH, start with Open SSH

    For a module, check out Net::SSH

    --update...once again castaway out-types me ;-) --

Re: What is SSH? What Perl modules exist for it?
by Plankton (Priest) on Oct 30, 2003 at 19:15 UTC
    What is SSH? Secure Shell
  • Have you tried searching on google for SSH?
    Is there a module for this?
  • yes, try searching here

    Plankton: 1% Evil, 99% Hot Gas.
Re: What is SSH? What Perl modules exist for it?
by vek (Prior) on Oct 30, 2003 at 20:16 UTC

    Net::SSH::Perl is a fine module but be warned, there are a lot of dependencies. Using the CPAN shell should take care of most of them. You'll probably still end up installing some by hand though.

    This may or may not be an issue for you but I just thought I'd point it out.

    -- vek --

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://303360]
Approved by sauoq
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2014-09-23 05:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls