[Ssh-sftp-perl-users] known_hosts2
Brought to you by:
dbrobins
From: Morgan S. <mo...@du...> - 2006-05-31 22:16:38
|
I have a couple questions about the handling of known_hosts2. I know that the location of known_hosts2 file is pretty standard, but is there an option to specify where the known_hosts2 file resides? Now for something different. I've been having difficulties getting scripts to work well with the contents of known_hosts2 as created by Net::SSH::Perl in non-interactive mode on a machine with an empty known_hosts2 file. What I'm finding is that the first time I connect to a host it's host key (ssh-dss) is added to known_hosts2. Even after installing Crypt::RSA gand clearing the known_hosts2 file, Net::SSH::Perl still puts ssh-dss entries into the known_hosts2 file. Not so great. It seems as though ssh-dss is an unsupported key type which is caught in an eval statement. If I use ssh to login to the remote host then an ssh-rsa host key is added to known_hosts2 by the ssh program. Hosts.pm likes ssh-rsa entries :-) I know that ssh-dss entries are default, but if they aren't supported why are they still added to the known_hosts2 file even though Crypt::RSA is installed? I can see how dss may be prefered over rsa because patents. Is there a way to enable support for dss? Is there a module I might not have installed? I suppose I could specify that as an option: my $ssh =3D Net::SSH::Perl->new($host, options =3D> ["HostKeyAlgorithms ssh-rsa,ssh-dss"]); to enable the behavior I'm looking for. It feels like I'm missing something though, like there's a better way to do it. Suggestions? --=20 Morgan Smith Dutro Company 675 North 600 West Logan, UT 84321 (435) 752-3921 ext.146 (435) 512-3374 mo...@du... |