my $ssh = Net::SSH::Perl->new("1.1.1.1"); my $cfg = $ssh->config(); # holt erst einmal lokale und globale Konfig my $hostKey = $cfg->set("user_known_hosts", "/home/jz/.ssh/ssh_known_hosts"); # setzt eigene user_known_hosts $cfg->read_config( '/home/jz/.ssh/config' ); # liest eigene config ein