Thread pscp - batch mode vs. hostkey (11 answers)
Opened by Astralkeks at 2012-07-31 16:58

Linuxer
 2012-08-01 14:51
#160418 #160418
User since
2006-01-27
3875 Artikel
HausmeisterIn

user image
Schon mal "StrictHostKeyChecking" modifiziert?

man ssh_config
Code: (dl )
1
2
3
4
5
6
7
     StrictHostKeyChecking
If this flag is set to "yes", ssh(1) will never automatically add host keys to the ~/.ssh/known_hosts file, and refuses to connect to hosts whose host key has changed.
This provides maximum protection against trojan horse attacks, though it can be annoying when the /etc/ssh/ssh_known_hosts file is poorly maintained or when connections
to new hosts are frequently made. This option forces the user to manually add all new hosts. If this flag is set to "no", ssh will automatically add new host keys to
the user known hosts files. If this flag is set to "ask", new host keys will be added to the user known host files only after the user has confirmed that is what they
really want to do, and ssh will refuse to connect to hosts whose host key has changed. The host keys of known hosts will be verified automatically in all cases. The
argument must be "yes", "no", or "ask". The default is "ask".


perldoc Net::SSH::Perl
Code: (dl )
1
2
3
4
5
6
7
8
* options

Used to specify additional options to the configuration settings; useful for specifying options for which there is no separate constructor argument. This is analogous to the -o command line flag to the ssh program.

If used, the value should be a reference to a list of option directives in the format used in the config file. For example:

my $ssh = Net::SSH::Perl->new("host", options => [
"BatchMode yes", "RhostsAuthentication no" ]);
meine Beiträge: I.d.R. alle Angaben ohne Gewähr und auf Linux abgestimmt!
Die Sprache heisst Perl, nicht PERL. - Bitte Crossposts als solche kenntlich machen!

View full thread pscp - batch mode vs. hostkey