Thread Net::SFTP - Verbindung klappt nicht (10 answers)
Opened by Stefan_S at 2023-04-06 14:56

GwenDragon
 2023-04-07 14:56
#194776 #194776
User since
2005-01-17
14555 Artikel
Admin1
[Homepage]
user image
Schon versucht mit ssh-keygen den Publick-Schlüssel für das alte SSH-Format umzukodieren?

ssh-keygen -e -m RFC4716 -f C:\Users\ss\.ssh\id_rsa > C:\Users\ss\.ssh\id_rsa_ssh.pub

Kann auch sein, dass die Bibliotheken von meinem openssh zu neu sind und deswegen StrawberryPerl streikt.

Vielleich hilt das an Net:SSH::Perl weiter zu reichen:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
my %args = (
user => 'user',
password => 'passwort',
debug => 'true',
ssh_args => {
options => [
"PasswordAuthentication yes",
"PubkeyAuthentication no"
],
#identity_files => [
# 'C:\Users\ss\.ssh\id_rsa_ssh'
#],
}
);
https://metacpan.org/pod/Net::SSH::Perl#DESCRIPTIO...

Weiteres (kann ich nicht sagen obs daran liegt!):
https://stackoverflow.com/questions/55989117/sftp-connection-failure-with-perl-netsftp-module
EDIT: I suspected that it may be related to multiple connection failing attempts with password so I removed the password authentication from "%AUTH_MAP" in the file "app/perl-5.24.3/lib/site_perl/5.24.3/x86_64-linux/Net/SSH/Perl/AuthMgr.pm" and it connected as expected! Is there a way to force using only/first key authentication?
https://stackoverflow.com/questions/55989117/sftp-...

Und egal was ich probiere, ich komme nicht mit StraberryPerl auf meine Hetzner-Storage mit Net::SFTP. Vielleicht ist Net::SFTP und Net::SSH::Perl zu alt.
Alle Tools von OpenSSH wie scp, sftp oder ssh laufen problemlos.
Last edited: 2023-04-08 10:59:04 +0200 (CEST)
die Drachin, Gwendolyn


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

View full thread Net::SFTP - Verbindung klappt nicht