Re: SFTP & SSH support in Red Hat AS4
by andyford (Curate) on Oct 05, 2006 at 16:16 UTC
|
| [reply] |
|
|
Hard to do since they wont let us programmers download anything.
If I did would I have to install perl completely in my own directory even though it is already installed on the server?
| [reply] |
|
|
| [reply] |
Re: SFTP & SSH support in Red Hat AS4
by Khen1950fx (Canon) on Oct 05, 2006 at 20:36 UTC
|
What your sysadmin said is not quite true. For instance, I'm on FC5 and FC6. Both have full 64-bit support for openssh protocols 1 and 2. There is also a 64-bit rpm for Net-SSH-Perl. Now, he may be confused about the meaning of SFTP. For our purposes, SFTP means "SSH File Transfer Protocol". If openssh is installed, then it's supported. On the other hand, SFTP could mean "SSH File Transfer Program"---that's more for commandline clients and not really what we're talking about.
I think the real problem is that the sysadmin may have had a problem installing Net::SSH::Perl. It has some dependencies that are extremely difficult to install---Math::Pari and the Crypt modules. Math::Pari is the major stumbling block. There are 64-bit rpms for pari and Math::Pari. If he can't get it to install properly, then the Crypt modules won't either; hence, the Net::SSH::Perl installation won't be satisfactory. | [reply] |
|
|
I found this on Cpan..
Is this the same things or something different?
Bundle::SSH - A bundle to install modules to use SSH from Perl
SYNOPSIS
First you have to download and expand the PARI itself.
See INSTALL PARI below.
Then:
perl -MCPAN -e 'force install Bundle::SSH'
DESCRIPTION
This bundle defines the modules you need to use SSH from Perl. Thre are two ways to do this. One is using Net::SSH which is a wrapper around the ssh command installed (or not) on your computer. It is simple to install and use but it depends on external executabel and has other drawbacks too. I have included it in this bundle.
The other way which is more involved both in terms of installation and in the way you use it is called Net::SSH::Perl . It is a Perl/C implementation of the SSH protocol.
This module should list all the required modules (and maybe more) to use either of the above way to ssh to another machine. It is organized in a way so it will be able to install everything without the need to install prerequsite modules
| [reply] |
|
|
Bundle::SSH is good. It can make things easier, but the problem of pari still remains. Installing pari requires a lot of time and experimentation, and the installation process varies from one machine to another because of dependencies. If the sysadmin can get pari installed right, then, by all means, try Bundle::SSH.
| [reply] |
Re: SFTP & SSH support in Red Hat AS4
by salva (Canon) on Oct 06, 2006 at 07:40 UTC
|
Try Net::SFTP::Foreign, it's an SFTP client that uses the ssh binary to connect to the remote server instead of Net::SSH::Perl. It doesn't require any additional module to work and is much faster.
Its only drawbacks are that it doesn't support user/password authentication and that it doesn't work on Windows. | [reply] |
|
|
But the main reason I am using perl is for the user/password authentication so I dont have to use expect. I already have a perl script using ftp I can easily use sftp in the same scritp If I can get sftp to work.
Thanks
| [reply] |
|
|
| [reply] [d/l] [select] |