Thread Eigene ssh_config in Net::SFTP verwenden (6 answers)
Opened by Gast at 2009-01-30 13:33

GwenDragon
 2009-01-30 18:36
#118524 #118524
User since
2005-01-17
14536 Artikel
Admin1
[Homepage]
user image
Gast+2009-01-30 14:29:17--
ssh -F <homedir>/ssh_config <user@hostname> mache, klappt die Verbindung.

Deine Datei sollte dann aber config heißen und im Verzeichnis .ssh liegen!
Steht doch auch im man ssh drin!
Quote
-F configfile
Specifies an alternative per-user configuration file. If a configuration file is given on the command line, the system-wide configuration file (/etc/ssh/ssh_config) will be ignored. The default for the per-user configuration file is ~/.ssh/config.

Letzte Zeile ds o. g.: per-user configuration file is ~/.ssh/config

Es liest $ssh->config auch Konfigurationsdaten ein:
Quote
$ssh->config

Returns the Net::SSH::Perl::Config object managing the configuration data for this SSH object. This is constructed from data passed in to the constructor new (see above), merged with data read from the user and system configuration files.


Ist auch im Code drin:
Code: (dl )
1
2
    my $user_config = delete $arg{user_config} || "$ENV{HOME}/.ssh/config";
my $sys_config = delete $arg{sys_config} || "/etc/ssh_config";


Siehe auch in CPAN:Net::SSH::Perl::Config unter $cfg->read_config($file)
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread Eigene ssh_config in Net::SFTP verwenden