RE: [Ssh-sftp-perl-users] Login using username and password
Brought to you by:
dbrobins
|
From: Bryan B. <br...@bu...> - 2006-02-24 18:09:12
|
> Yes it does support username and password: > > $ssh =3D Net::SSH::Perl->new($host, > PreferredAuthentications=3D>'password'); > > $ssh->login($login, $password); > I think the question was for Net::SSH2 > --- Bobby Jafari <bob...@se...> a =E9crit : > >> Hi All, >> >> >> >> I am trying to use the Net:SSH2 module but don't >> want to use RSA key for >> authentication. From looking at the documentation, >> It doesn't seem to >> support username:password authentication. >> >> >> You can use this to automatically prompt you: $ssh2->auth(username =3D> $user, interact =3D> 1); Or this if you have your password stored somewhere: $ssh2->auth_keyboard($user, $pass); Hope that helps. Bryan http://sourceforge.net/projects/rover |