Skip to content

Commit e35c1d9

Browse files
committed
added documentation for unsafe key types in SFTP get and put. #5269
1 parent bc5f361 commit e35c1d9

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

docs/hop-user-manual/modules/ROOT/pages/workflow/actions/sftp.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ The `Get a file with SFTP` action retrieves one or more files from an FTP server
2626

2727
The action returns true if the specified file(s) or pattern were retrieved successfully, false it there were problems retrieving the file(s).
2828

29+
TIP: If you run into a `Algorithm Negotiation Fail` error when connecting to your SFTP server, check the link:#negotiation_error[Algorith Negotiation Fail Error] section at the end of this page.
30+
31+
2932
== Options
3033

3134
=== General tab
@@ -86,3 +89,14 @@ A.*[ENG:0-9].txt : files tarting with A, ending with a number and .txt
8689
|Add filenames to result|If checked the name of the file is added to the result stream.
8790
|===
8891

92+
== Algorithm Negotiation Fail Error [[negotiation_error]]
93+
94+
If your `Get a file with SFTP` action returns an error message like the one below, you (or the server you are connecting to) are probably using key types that are considered unsafe in the dependencies used by this action in recent Apache Hop versions.
95+
96+
`com.jcraft.jsch.JSchhAlgoNegoFailException: Algorithm negotiation fail...`
97+
98+
The better and more secure option is to upgrade your keys to more secure types. However, you can still connect to this SFTP server by adding the options below to the `HOP_OPTIONS` variable in your startup command (in `hop-gui.sh/bat` or `hop-run.sh/bat`, or in your `HOP_OPTIONS` environment variable):
99+
100+
`-Djsch.client_pubkey=ssh-rsa,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256 -Djsch.server_host_key=ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256,ssh-rsa`
101+
102+

docs/hop-user-manual/modules/ROOT/pages/workflow/actions/sftpput.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ The `Put a file with SFTP` action pushes one or more files to an FTP server usin
2626

2727
The action returns true if the specified file(s) or pattern were uploaded successfully, false it there were problems uploading the file(s).
2828

29+
TIP: If you run into a `Algorithm Negotiation Fail` error when connecting to your SFTP server, check the link:#negotiation_error[Algorith Negotiation Fail Error] section at the end of this page.
30+
2931
== Options
3032

3133
=== General Tab
@@ -99,3 +101,15 @@ If checked the name of the file is added to the result stream.
99101
Use the "test folder" button to connect to the remote server and validate that the folder exists.
100102
|Create folder|Check this option if the destination folder does not exist and should be created.
101103
|===
104+
105+
== Algorithm Negotiation Fail Error [[negotiation_error]]
106+
107+
If your `Put a file with SFTP` action returns an error message like the one below, you (or the server you are connecting to) are probably using key types that are considered unsafe in the dependencies used by this action in recent Apache Hop versions.
108+
109+
`com.jcraft.jsch.JSchhAlgoNegoFailException: Algorithm negotiation fail...`
110+
111+
The better and more secure option is to upgrade your keys to more secure types. However, you can still connect to this SFTP server by adding the options below to the `HOP_OPTIONS` variable in your startup command (in `hop-gui.sh/bat` or `hop-run.sh/bat`, or in your `HOP_OPTIONS` environment variable):
112+
113+
`-Djsch.client_pubkey=ssh-rsa,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256 -Djsch.server_host_key=ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256,ssh-rsa`
114+
115+

0 commit comments

Comments
 (0)