Re: question on Net::SSH::Perl

2005-06-10 Thread Ted Zeng

Thanks.

I found out the machines I have the problem with have OS X 10.4.1 
installed.

10.3.8 doesn't have the problem.

I generated a public key and copied it to a target machine. Then it is 
ok.

Not a good solution to me. But I can deal with it.

I have looked at ssh_config and sshd_config and still could not figure 
out why these two

OS behave differently.

SSH has been a big pain. I wish it has a switch that would turn it into 
telnet.

I don't care about security in our situation.


ted

On Jun 2, 2005, at 4:42 PM, Sherm Pendley wrote:


On Jun 2, 2005, at 2:20 PM, Ted Zeng wrote:

Anyone has seen this problem before? I searched the net and found a 
couple of people

had this problem. But there were no answers to their questions.

Here is the script that I used:

$user='name';
$pass = 'password';
$host = '111.22.33.444';
$params{debug} = 1;
$params{interactive} = 0;
my $ssh = Net::SSH::Perl->new($host,%params,options =>["BatchMode 
yes"]);


Googling for 'No compat match:' turned up some likely-looking 
candidates, including this one:




Based on that page, you might try using the 'protocol' option for 
force Net::SSH::Perl to try an SSH2 connection first:


$params{protocol} = '2,1';

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org





Re: question on Net::SSH::Perl

2005-06-02 Thread Sherm Pendley

On Jun 2, 2005, at 2:20 PM, Ted Zeng wrote:

Anyone has seen this problem before? I searched the net and found a  
couple of people

had this problem. But there were no answers to their questions.

Here is the script that I used:

$user='name';
$pass = 'password';
$host = '111.22.33.444';
$params{debug} = 1;
$params{interactive} = 0;
my $ssh = Net::SSH::Perl->new($host,%params,options => 
["BatchMode yes"]);


Googling for 'No compat match:' turned up some likely-looking  
candidates, including this one:




Based on that page, you might try using the 'protocol' option for  
force Net::SSH::Perl to try an SSH2 connection first:


$params{protocol} = '2,1';

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org



Re: question on Net::SSH::Perl

2005-06-02 Thread Joel Rees


On 2005.6.3, at 03:20 AM, Ted Zeng wrote:


Hi,
I use Net::SSH::Perl to connect to a few Macs from a Mac.

To 2 of them, it works fine. But for others, the shell would have
password prompt  and I have to type the password at the shell to
make the script goes through.

I have tried to turn off any options that would ask for authentication.


Options in or to what? .ssh file? keychain? method call?


Even set the interactive option to 0 (The default is already false.)
But the problem doesn't go away. I turn the debug on and the log is in 
the end of this message.

For the two Macs that works, it has
No challenge presented.
Trying password authentication.

at the end instead of the password prompt.

Anyone has seen this problem before? I searched the net and found a 
couple of people

had this problem. But there were no answers to their questions.

Here is the script that I used:

$user='name';
$pass = 'password';
$host = '111.22.33.444';
$params{debug} = 1;
$params{interactive} = 0;
my $ssh = Net::SSH::Perl->new($host,%params,options =>["BatchMode 
yes"]);

$ssh->login($user, $pass);
($stdout, $stderr, $exit) = $ssh->cmd("ls");

ted zeng
Adobe Systems

==The debug log
Reading configuration data /Users/z/.ssh/config
Reading configuration data /etc/ssh_config
Connecting to ip, port 22.
Remote protocol version 1.99, remote software version OpenSSH_3.8.1p1
Net::SSH::Perl Version 1.27, protocol version 1.5.
No compat match: OpenSSH_3.8.1p1.
Connection established.
Waiting for server public key.
Received server public key (768 bits) and host key (1024 bits).
Host 'ip' is known and matches the host key.
Encryption type: DES3
Sent encrypted session key.
Received encryption confirmation.
RSA authentication failed: Can't load public key.
Doing challenge response authentication.
Password:

No challenge presented.
Trying password authentication.





question on Net::SSH::Perl

2005-06-02 Thread Ted Zeng

Hi,
I use Net::SSH::Perl to connect to a few Macs from a Mac.

To 2 of them, it works fine. But for others, the shell would have
password prompt  and I have to type the password at the shell to
make the script goes through.

I have tried to turn off any options that would ask for authentication.
Even set the interactive option to 0 (The default is already false.)
But the problem doesn't go away. I turn the debug on and the log is in 
the end of this message.

For the two Macs that works, it has
No challenge presented.
Trying password authentication.

at the end instead of the password prompt.

Anyone has seen this problem before? I searched the net and found a 
couple of people

had this problem. But there were no answers to their questions.

Here is the script that I used:

$user='name';
$pass = 'password';
$host = '111.22.33.444';
$params{debug} = 1;
$params{interactive} = 0;
my $ssh = Net::SSH::Perl->new($host,%params,options =>["BatchMode 
yes"]);

$ssh->login($user, $pass);
($stdout, $stderr, $exit) = $ssh->cmd("ls");

ted zeng
Adobe Systems

==The debug log
Reading configuration data /Users/z/.ssh/config
Reading configuration data /etc/ssh_config
Connecting to ip, port 22.
Remote protocol version 1.99, remote software version OpenSSH_3.8.1p1
Net::SSH::Perl Version 1.27, protocol version 1.5.
No compat match: OpenSSH_3.8.1p1.
Connection established.
Waiting for server public key.
Received server public key (768 bits) and host key (1024 bits).
Host 'ip' is known and matches the host key.
Encryption type: DES3
Sent encrypted session key.
Received encryption confirmation.
RSA authentication failed: Can't load public key.
Doing challenge response authentication.
Password:

No challenge presented.
Trying password authentication.