# Sftp always says: "Connection failed:" but it's just reachable

**URL:** https://forum.duplicati.com/t/sftp-always-says-connection-failed-but-its-just-reachable/14783
**Category:** Uncategorized
**Created:** [August 1, 2022, 1:19pm UTC](https://forum.duplicati.com/t/sftp-always-says-connection-failed-but-its-just-reachable/14783 "2022-08-01T13:19:39Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Jurian\_Post](https://forum.duplicati.com/user_avatar/forum.duplicati.com/jurian_post/32/7345_2.png) [@Jurian\_Post](https://forum.duplicati.com/u/Jurian_Post)
#### Post date: [August 1, 2022, 1:19pm UTC](https://forum.duplicati.com/t/sftp-always-says-connection-failed-but-its-just-reachable/14783/1 "2022-08-01T13:19:39Z")

</div>

Hey there, I always get “Connection failed:” but my sftp server is just reachable, and it works fine if I connect with filezilla.

 ![Screenshot_1](https://forum.duplicati.com/uploads/default/original/2X/0/091e62891d50618219bcbbff5e6187927b05ddce.png)

Also, another question:  
I added the --webservice-interface=any to the daemon opts, and it shows up if I do: service duplicati status, but it’s still not reachable on my IP 😐  
A nginx reserve proxy isn’t possible on the server, so I really need that option.

---

<div class="post-metadata">

### Author: ![gpatel-fr](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/g/7993a0/32.png) [@gpatel-fr](https://forum.duplicati.com/u/gpatel-fr)
#### Post date: [August 1, 2022, 2:13pm UTC](https://forum.duplicati.com/t/sftp-always-says-connection-failed-but-its-just-reachable/14783/2 "2022-08-01T14:13:29Z")

</div>

Hello, my advice:

- about connection failed: try to export the backup as a command line and launch it (as admin) from a terminal window. It may output some interesting stuff that you will not see in the web ui.
- about the reverse proxy: you should _really_ use it if you want to expose your duplicati setup since it’s not much secured anyway. Ideally you should always access your Duplicati through a VPN or SSH tunnel.

---

<div class="post-metadata">

### Author: ![Jurian\_Post](https://forum.duplicati.com/user_avatar/forum.duplicati.com/jurian_post/32/7345_2.png) [@Jurian\_Post](https://forum.duplicati.com/u/Jurian_Post)
#### Post date: [August 1, 2022, 2:38pm UTC](https://forum.duplicati.com/t/sftp-always-says-connection-failed-but-its-just-reachable/14783/3 "2022-08-01T14:38:58Z")

</div>

Hey!  
Yeah, I’m going to just use the reverse proxy, that’s indeed better.  
But how do you mean “export as command line and launch it as admin from a terminal window”?  
I’m not on windows if you mean that, I’m on ubuntu 😉

---

<div class="post-metadata">

### Author: ![gpatel-fr](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/g/7993a0/32.png) [@gpatel-fr](https://forum.duplicati.com/u/gpatel-fr)
#### Post date: [August 1, 2022, 3:44pm UTC](https://forum.duplicati.com/t/sftp-always-says-connection-failed-but-its-just-reachable/14783/4 "2022-08-01T15:44:56Z")

</div>

Select backup in the Web UI, click Configuration/Export/, select ‘As Command-line’ and then click Export, you will get a ready to use command line, that you have to copy and paste into whatever you can use to run a command.

---

<div class="post-metadata">

### Author: ![Jurian\_Post](https://forum.duplicati.com/user_avatar/forum.duplicati.com/jurian_post/32/7345_2.png) [@Jurian\_Post](https://forum.duplicati.com/u/Jurian_Post)
#### Post date: [August 1, 2022, 3:57pm UTC](https://forum.duplicati.com/t/sftp-always-says-connection-failed-but-its-just-reachable/14783/5 "2022-08-01T15:57:35Z")

</div>

Ah yes I see now!  
The first thing I noticed: my password has a @ in it and it gets replaced by %40, would that just work or?

---

<div class="post-metadata">

### Author: ![Jurian\_Post](https://forum.duplicati.com/user_avatar/forum.duplicati.com/jurian_post/32/7345_2.png) [@Jurian\_Post](https://forum.duplicati.com/u/Jurian_Post)
#### Post date: [August 1, 2022, 5:48pm UTC](https://forum.duplicati.com/t/sftp-always-says-connection-failed-but-its-just-reachable/14783/6 "2022-08-01T17:48:07Z")

</div>

Found the error:  
Fatal error =\> EVP\_MD\_size assembly: type: membe r:(null)

System.EntryPointNotFoundException: EVP\_MD\_size assembly: type : member:(null)  
at (wrapper managed-to-native) FasterHashing.InteropOpenSSL11\_libcrypto\_dll.EV P\_MD\_size(intptr)  
at FasterHashing.OpenSSL11\_libcrypto\_dll\_HashAlgorithmSHA256…ctor () [0x0003b] in \<787629f3dc434608a1b2bf412946d433\>:0  
at FasterHashing.OpenSSL11\_libcrypto\_dll\_HashAlgorithm.Create (System.String n ame) [0x00036] in \<787629f3dc434608a1b2bf412946d433\>:0  
at FasterHashing.OpenSSL11HashAlgorithm.Create (System.String algorithm, Faste rHashing.OpenSSL11HashAlgorithm+LibraryName library) [0x0003a] in \<787629f3dc434 608a1b2bf412946d433\>:0  
at FasterHashing.FasterHash.Create (System.String algorithm, System.Boolean al lowfallback, FasterHashing.HashImplementation implementation) [0x00034] in \<7876 29f3dc434608a1b2bf412946d433\>:0  
at Duplicati.Library.Utility.HashAlgorithmHelper.Create (System.String name) [0x00000] in \<2a3ee711c7c04f6c957360f2cf183a7f\>:0  
at Duplicati.Library.Main.Options.get\_BlockhashSize () [0x00025] in :0  
at Duplicati.Library.Main.Volumes.VolumeBase…ctor (Duplicati.Library.Main.Opt ions options) [0x0002b] in :0  
at Duplicati.Library.Main.Volumes.VolumeWriterBase…ctor (Duplicati.Library.Ma in.Options options, System.DateTime timestamp) [0x00000] in :0  
at Duplicati.Library.Main.Volumes.FilesetVolumeWriter…ctor (Duplicati.Library .Main.Options options, System.DateTime timestamp) [0x00000] in \<e60bc008dd1b454d 861cfacbdd3760b9\>:0  
at Duplicati.Library.Main.Operation.BackupHandler.RunAsync (System.String[] so urces, Duplicati.Library.Utility.IFilter filter, System.Threading.CancellationTo ken token) [0x01048] in :0  
at CoCoL.ChannelExtensions.WaitForTaskOrThrow (System.Threading.Tasks.Task tas k) [0x00050] in \<9a758ff4db6c48d6b3d4d0e5c2adf6d1\>:0  
at Duplicati.Library.Main.Operation.BackupHandler.Run (System.String[] sources , Duplicati.Library.Utility.IFilter filter, System.Threading.CancellationToken t oken) [0x00009] in :0  
at Duplicati.Library.Main.Controller+\<\>c\_\_DisplayClass14\_0.b\_\_0 (Dupli cati.Library.Main.BackupResults result) [0x0004b] in \<e60bc008dd1b454d861cfacbdd 3760b9\>:0  
at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.String[]& paths, Duplicati.Library.Utility.IFilter& filter, System.Action`1[T] method) [0x 0026f] in <e60bc008dd1b454d861cfacbdd3760b9>:0 at Duplicati.Library.Main.Controller.Backup (System.String[] inputsources, Dup licati.Library.Utility.IFilter filter) [0x00074] in <e60bc008dd1b454d861cfacbdd3 760b9>:0 at Duplicati.CommandLine.Commands.Backup (System.IO.TextWriter outwriter, Syst em.Action`1[T] setup, System.Collections.Generic.List`1[T] args, System.Collecti ons.Generic.Dictionary`2[TKey,TValue] options, Duplicati.Library.Utility.IFilter filter) [0x00119] in :0  
at (wrapper delegate-invoke) System.Func`6[System.IO.TextWriter,System.Action` 1[Duplicati.Library.Main.Controller],System.Collections.Generic.List`1[System.St ring],System.Collections.Generic.Dictionary`2[System.String,System.String],Dupli cati.Library.Utility.IFilter,System.Int32].invoke\_TResult\_T1\_T2\_T3\_T4\_T5(System. IO.TextWriter,System.Action`1<Duplicati.Library.Main.Controller>,System.Collecti ons.Generic.List`1,System.Collections.Generic.Dictionary`2<string, strin g>,Duplicati.Library.Utility.IFilter) at Duplicati.CommandLine.Program.ParseCommandLine (System.IO.TextWriter outwri ter, System.Action`1[T] setup, System.Boolean& verboseErrors, System.String[] ar gs) [0x00342] in :0  
at Duplicati.CommandLine.Program.RunCommandLine (System.IO.TextWriter outwrite r, System.IO.TextWriter errwriter, System.Action`1[T] setup, System.String[] arg s) [0x00002] in :0

---

<div class="post-metadata">

### Author: ![gpatel-fr](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/g/7993a0/32.png) [@gpatel-fr](https://forum.duplicati.com/u/gpatel-fr)
#### Post date: [August 1, 2022, 6:10pm UTC](https://forum.duplicati.com/t/sftp-always-says-connection-failed-but-its-just-reachable/14783/7 "2022-08-01T18:10:12Z")

</div>

hmm, just a shot in the dark but do you happen to use Ubuntu 22.04 ? If yes, you may have the problem that 22.04 has switched to OpenSSL 3 (but NOT Duplicati). In this case, an ugly workaround is to install OpenSSL 1.1 libraries using a PPA. There are posts about it on this forum I believe.

---

<div class="post-metadata">

### Author: ![Jurian\_Post](https://forum.duplicati.com/user_avatar/forum.duplicati.com/jurian_post/32/7345_2.png) [@Jurian\_Post](https://forum.duplicati.com/u/Jurian_Post)
#### Post date: [August 1, 2022, 6:22pm UTC](https://forum.duplicati.com/t/sftp-always-says-connection-failed-but-its-just-reachable/14783/8 "2022-08-01T18:22:43Z")

</div>

😮 😮 😮  
Yes, I use ubuntu 22.04!  
Can you give the instructions to install the old OpenSSL libraries?

---

<div class="post-metadata">

### Author: ![Jurian\_Post](https://forum.duplicati.com/user_avatar/forum.duplicati.com/jurian_post/32/7345_2.png) [@Jurian\_Post](https://forum.duplicati.com/u/Jurian_Post)
#### Post date: [August 1, 2022, 7:04pm UTC](https://forum.duplicati.com/t/sftp-always-says-connection-failed-but-its-just-reachable/14783/9 "2022-08-01T19:04:21Z")

</div>

nvm, found it on the forum:

> [@Error after updating to Ubuntu Server 22.04 - Failed: EVP\_MD\_size assembly:\<unknown assembly\> type:\<unknown type\> member:(null)](https://forum.duplicati.com/t/error-after-updating-to-ubuntu-server-22-04-failed-evp-md-size-assembly-unknown-assembly-type-unknown-type-member-null/14371):
>
> Hi, After upgrading to Ubuntu Server 22.04 LTS I now receive the following error for all back ups: Failed: EVP\_MD\_size assembly: type: member:(null) Log file details follows: Failed: EVP\_MD\_size assembly: type: member:(null) Details: System.EntryPointNotFoundException: EVP\_MD\_size assembly: type: member:(null) at (wrapper managed-to-native) FasterHashing.InteropOpenSSL11\_libcrypto\_dll.EVP\_MD\_size(intptr) at FasterHashing.OpenSSL11\_libcrypto\_dll\_HashAlgorithmSHA256…ctor () [0x0003b] in \<78…

> <https://askubuntu.com/questions/1403778/upgrading-to-ubuntu-22-04-causes-libcrypto-errors-apt-dpkg-broken>

---

<div class="post-metadata">

### Author: ![Jurian\_Post](https://forum.duplicati.com/user_avatar/forum.duplicati.com/jurian_post/32/7345_2.png) [@Jurian\_Post](https://forum.duplicati.com/u/Jurian_Post)
#### Post date: [August 1, 2022, 7:19pm UTC](https://forum.duplicati.com/t/sftp-always-says-connection-failed-but-its-just-reachable/14783/10 "2022-08-01T19:19:40Z")

</div>

That solved it, will close this!  
Thanks for your help!  
uhm, how can I close this?

---

<div class="post-metadata">

### Author: ![bcsteeve](https://forum.duplicati.com/user_avatar/forum.duplicati.com/bcsteeve/32/5013_2.png) [@bcsteeve](https://forum.duplicati.com/u/bcsteeve)
#### Post date: [August 13, 2022, 11:45pm UTC](https://forum.duplicati.com/t/sftp-always-says-connection-failed-but-its-just-reachable/14783/11 "2022-08-13T23:45:57Z")

</div>

Don’t close this… Duplicati apparently needs to update to Open SSL3, no?

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [August 14, 2022, 1:16am UTC](https://forum.duplicati.com/t/sftp-always-says-connection-failed-but-its-just-reachable/14783/12 "2022-08-14T01:16:41Z")

</div>

> [@Jurian\_Post](#):
>
> uhm, how can I close this?

When you marked a post as the solution, that’s about as closed as it gets. Forum is not a bug tracker.

> [@bcsteeve](#):
>
> Duplicati apparently needs to update to Open SSL3, no?

Something like that. It needs a developer, but developers are scarce, so the problem sits in [Issues list](https://github.com/duplicati/duplicati/issues).

[OneDrive backup error message: EVP\_MD\_size assembly: type: member:(null) #4716](https://github.com/duplicati/duplicati/issues/4716)

There are some notes there and [on the forum](https://forum.duplicati.com/t/error-after-updating-to-ubuntu-server-22-04-failed-evp-md-size-assembly-unknown-assembly-type-unknown-type-member-null/14371) on what might be happening. Anybody willing to dive in?  
Duplicati (in all its aspects) runs entirely on community volunteers who contribute their time and skills…
