I am having an issue while trying to run the Net::SFTP module. I have been able to install this on several machines before but have never had this problem. When I am running a simple script to test the sftp it dies but does not trigger the print statement for my error. The last line is in red.
My debug output for sftp_test : This is being run on AIX 5300-09, C/C++ 6, Perl 5.8.2
I also know there is an issue with Math::BigInt which is installed but I do not think that it is the cause of my problems. I have never seen this and not sure what to do to correct it. I have also been able to connect to this server on other machines so I should be able to with this new_test box.
Any ideas would be very helpful.
Thanks
---------- Post updated 11-04-09 at 09:11 AM ---------- Previous update was 11-03-09 at 02:00 PM ----------
Any suggestions at a better place to ask this question? I need to get this working and have hit a wall. Thanks in advance.
Hello,
On my test host I've installed the SSH soft. Created the Public & Private key for sftp and all works fine. Now I want to modify my scheduled scripts, that runs in batch mode, to work automatically. How can I bypass the Passphrase request when I start my sftp connection.
I modified the... (1 Reply)
I installed Net::sftp on a solaris 8 server and I am able to successfully transfer files to the remote server. I am running the command out of a script with debug=1 on so I can see the verbose output.
The last two lines of the debug output show it couldn't fsetstat, but I don't know what that... (2 Replies)
Hi my friends
when I want to make boot net for my server I have receive:
Time out ARP/RARP
note: I have use
Ok boot net (this is my Syntax)
so what is the problem? (2 Replies)
#!/usr/bin/perl
use strict;
use warnings;
use Net::Telnet ();
my $t = new Net::Telnet (Timeout => 10,
Prompt => '/.*(#|>|\))\s*$/');
my $remote_host='home';
$t->open(Host => $remote_host, Port =>23);
$t->login('root', 'pass');
the error that I get... (4 Replies)
Hi Guys
Am new in UNIX environment I was asked by my boss to write a program that transfer files from the AIX server to the Wintel Server. I have written the program in C# windows which does almost the same thing. So how to run the C# program in UNIX? (1 Reply)
Hi Guys
Am new in UNIX environment I was asked by my boss to write a program that transfer files from the AIX server to the Wintel Server. I have written the program in C# windows which does almost the same thing. So how to run the C# program in UNIX? (1 Reply)
I am facing some problem in the NET::FTP Library in perl script in the HPUX. I am using NET::FTP to ftp files from 23 remote servers. Except 1 server everything is working fine. I am getting this error from one server . but normal FTP is working fine for that server. everytime few files are ftped... (1 Reply)
I have a .NET application that remotely starts, stops, and gets status of Windows services and scheduled tasks. I would like to add the capability of starting, stopping, and getting status of remote AIX applications also. Based on some preliminary research, one option may be to use 3rd party .NET... (0 Replies)
hi guys
We have a AIX Server with TSM installed.
This server has en0 for administration purposes and we have en1 for backup stuff.
en0 subnet 10.10.10.x
en1 subnet 10.10.20.x
The issue we are having is all of a sudden the LPARs we are backing up lose connectivity to the AIX-TSM Server.... (23 Replies)
Discussion started by: karlochacon
23 Replies
LEARN ABOUT DEBIAN
crypt::dh
Crypt::DH(3pm) User Contributed Perl Documentation Crypt::DH(3pm)NAME
Crypt::DH - Diffie-Hellman key exchange system
SYNOPSIS
use Crypt::DH;
my $dh = Crypt::DH->new;
$dh->g($g);
$dh->p($p);
## Generate public and private keys.
$dh->generate_keys;
$my_pub_key = $dh->pub_key;
## Send $my_pub_key to "other" party, and receive "other"
## public key in return.
## Now compute shared secret from "other" public key.
my $shared_secret = $dh->compute_secret( $other_pub_key );
DESCRIPTION
Crypt::DH is a Perl implementation of the Diffie-Hellman key exchange system. Diffie-Hellman is an algorithm by which two parties can agree
on a shared secret key, known only to them. The secret is negotiated over an insecure network without the two parties ever passing the
actual shared secret, or their private keys, between them.
THE ALGORITHM
The algorithm generally works as follows: Party A and Party B choose a property p and a property g; these properties are shared by both
parties. Each party then computes a random private key integer priv_key, where the length of priv_key is at most (number of bits in p) - 1.
Each party then computes a public key based on g, priv_key, and p; the exact value is
g ^ priv_key mod p
The parties exchange these public keys.
The shared secret key is generated based on the exchanged public key, the private key, and p. If the public key of Party B is denoted
pub_key_B, then the shared secret is equal to
pub_key_B ^ priv_key mod p
The mathematical principles involved insure that both parties will generate the same shared secret key.
More information can be found in PKCS #3 (Diffie-Hellman Key Agreement Standard):
http://www.rsasecurity.com/rsalabs/pkcs/pkcs-3/
USAGE
Crypt::DH implements the core routines needed to use Diffie-Hellman key exchange. To actually use the algorithm, you'll need to start with
values for p and g; p is a large prime, and g is a base which must be larger than 0 and less than p.
Crypt::DH uses Math::BigInt internally for big-integer calculations. All accessor methods (p, g, priv_key, and pub_key) thus return
Math::BigInt objects, as does the compute_secret method. The accessors, however, allow setting with a scalar decimal string, hex string
(^0x), Math::BigInt object, or Math::Pari object (for backwards compatibility).
$dh = Crypt::DH->new([ %param ]).
Constructs a new Crypt::DH object and returns the object. %param may include none, some, or all of the keys p, g, and priv_key.
$dh->p([ $p ])
Given an argument $p, sets the p parameter (large prime) for this Crypt::DH object.
Returns the current value of p. (as a Math::BigInt object)
$dh->g([ $g ])
Given an argument $g, sets the g parameter (base) for this Crypt::DH object.
Returns the current value of g.
$dh->generate_keys
Generates the public and private key portions of the Crypt::DH object, assuming that you've already filled p and g with appropriate values.
If you've provided a priv_key, it's used, otherwise a random priv_key is created using either Crypt::Random (if already loaded), or
/dev/urandom, or Perl's rand, in that order.
$dh->compute_secret( $public_key )
Given the public key $public_key of Party B (the party with which you're performing key negotiation and exchange), computes the shared
secret key, based on that public key, your own private key, and your own large prime value (p).
The historical method name "compute_key" is aliased to this for compatibility.
$dh->priv_key([ $priv_key ])
Returns the private key. Given an argument $priv_key, sets the priv_key parameter for this Crypt::DH object.
$dh->pub_key
Returns the public key.
AUTHOR & COPYRIGHT
Benjamin Trott, ben@rhumba.pair.com
Brad Fitzpatrick, brad@danga.com
Except where otherwise noted, Crypt::DH is Copyright 2001 Benjamin Trott. All rights reserved. Crypt::DH is free software; you may
redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.0 2009-04-04 Crypt::DH(3pm)