Azure / Azure/Azure-DataFactory

SFTP Meet authentication failure when connecting to Linux SFTP servers

Offen
#488 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
PowerShell
Sterne
529
Forks
623
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi,

I have been trying to test an SFTP linked service connection to Linux SFTP server, using SSH public key authentication, and an Azure generated SSH public key.

An example of the linked service configuration can be seen below...

![adf-sftp-config1](https://user-images.githubusercontent.com/40501541/205951133-b15086a9-b223-4923-9289-d78430c62917.PNG)

When testing this I connection the get the following error..

> Error code: SftpAuthenticationFailure
>
> Details: Meet authentication failure when connect to Sftp server '??.???.??.???' using 'SshPublicKey' authentication type. Please make sure you are using the correct authentication type and the credential is valid. For more details, see our troubleshooting docs. Permission denied (publickey).

However when testing to the same SFTP server using FileZilla, and the following configuration, the connection is successful.

![fz-sftp-config1](https://user-images.githubusercontent.com/40501541/205951909-0be6228e-3c20-4b58-83a6-dbdf21deec51.PNG)

Additionally, when using the same SSH public/private key pair, and authentication method, for an SFTP linked service connection to an SFTP enabled Azure storage container the connection is also successful.

I have tested this using the AutoResolveRuntime and a self-hosted integration runtime with identical results.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, die SSH-Konfiguration für den öffentlichen Schlüssel des Azure Data Factory SFTP linked-service mit den funktionierenden FileZilla- und Azure Storage-Verbindungen zu vergleichen. Reproduziere den Fehler gegenüber dem Linux-SFTP-Server sowohl mit AutoResolveRuntime als auch mit einer selbstgehosteten Integration Runtime. Als abgeschlossen gilt die Identifizierung des Grundes, warum die Authentifizierung mit öffentlichem Schlüssel abgelehnt wird, oder die Dokumentation der Konfigurationsbeschränkung.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
azure
Bereich
cloud
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.