# KopiaUI + SFTP is not Windows friendly

**URL:** <https://kopia.discourse.group/t/kopiaui-sftp-is-not-windows-friendly/109>\
**Category:** Feature Requests\
**Created:** [September 12, 2020, 7:44pm UTC](https://kopia.discourse.group/t/kopiaui-sftp-is-not-windows-friendly/109 "2020-09-12T19:44:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![NickPyz](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/nickpyz/32/45_2.png) [@NickPyz](https://kopia.discourse.group/u/NickPyz)\
**Post date:** [September 12, 2020, 7:44pm UTC](https://kopia.discourse.group/t/kopiaui-sftp-is-not-windows-friendly/109/1 "2020-09-12T19:44:23Z")

</div>

The KopiaUI (Windows version) setup to a remote Linux SFTP server asks for the path to the “known\_hosts” file (or its contents).

This file is typically available in a local Linux installation - but not in Windows. For example, my putty application stores this in the Windows registry - which is not accessible via path. And the contents of the registry key were unable to be parsed by KopiaUI.

I believe this is a Feature Request, unless there is a work-around that I haven’t discovered yet.

---

<div class="post-metadata">

**Author:** ![NickPyz](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/nickpyz/32/45_2.png) [@NickPyz](https://kopia.discourse.group/u/NickPyz)\
**Post date:** [September 15, 2020, 6:11pm UTC](https://kopia.discourse.group/t/kopiaui-sftp-is-not-windows-friendly/109/2 "2020-09-15T18:11:05Z")

</div>

I looked at other Windows applications that connect to ssh / sftp servers, to see how they configure the connection and deal with the issue of key path, and in particular - known\_hosts.

Putty  
WinSCP  
Duplicati  
Cyberduck

In all cases, the user enters the following **required** parameters:  
path to server:port, path on server, user name and (ssh) password. In all cases, the ssh private key is an optional input item. known\_hosts not present at all.

Upon entering the required input items, these 4 applications connect, and the server sends the ssh fingerprint to the Windows client for confirmation and authentication.

I am not an ssh expert. If there is a method to connect a Windows device to an sftp server using KopiaUI as is - please share it.

Thanks for KopiaUI. So much potential here!

---

<div class="post-metadata">

**Author:** ![santacruzskim](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@santacruzskim](https://kopia.discourse.group/u/santacruzskim)\
**Post date:** [February 19, 2021, 9:05am UTC](https://kopia.discourse.group/t/kopiaui-sftp-is-not-windows-friendly/109/3 "2021-02-19T09:05:02Z")

</div>

Still testing, but I’m currently mounting my remote storage via [sshfs-win](https://github.com/billziss-gh/sshfs-win). There are various implementations of this with different GUI’s and whatnot, but they all more or less do the same thing. So far so good for me, mounting with a drive letter on login, then pointing Kopia at the mounted path in “filesystem” mode, but obviously this is just a workaround.

I’m using [Duplicacy](https://github.com/gilbertchen/duplicacy) on the same remote storage over SFTP and it works great, entering the normal fields you outlined in your post.

Let me know if you figure out a way to directly access the storage via Kopia!

---

<div class="post-metadata">

**Author:** ![ingul-buz](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/ingul-buz/32/417_2.png) [@ingul-buz](https://kopia.discourse.group/u/ingul-buz)\
**Post date:** [September 16, 2022, 8:43pm UTC](https://kopia.discourse.group/t/kopiaui-sftp-is-not-windows-friendly/109/4 "2022-09-16T20:43:16Z")

</div>

It’s an old thread, but since I came across this while looking for something else, I may as well give a workaround for this one. At least there may be others on Windows who may benefit from this.

OpenSSH has been part of Windows installation at least since Windows 10. So, you can basically make an ssh connection to your host from the command prompt: `ssh username@example.com`. Immediately after that you will be asked something like:

```auto
The authenticity of host 'example.com (93.184.216.34)' can't be established.
ECDSA key fingerprint is SHA256:VHJ1c3QgbWUsIEkga25vdyB3aGF0IEknbSBkb2luZy4.
Are you sure you want to continue connecting (yes/no)?

```

After you write **yes** , the public key of the host will be saved into the file  
`C:\Users\username\.ssh\known_hosts`. The host will ask for your password after that, but you don’t have to log in at this point if you don’t want to.

Now, you can use that known\_hosts file as the one Kopia requires for the SFTP connection. And if you have multiple hosts you want to use for backups, you can just do the same with each one of them, and all their keys will be saved into the same known\_hosts file.

---

<div class="post-metadata">

**Author:** ![Richard\_Caldwell](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/richard_caldwell/32/494_2.png) [@Richard\_Caldwell](https://kopia.discourse.group/u/Richard_Caldwell)\
**Post date:** [October 3, 2022, 8:30pm UTC](https://kopia.discourse.group/t/kopiaui-sftp-is-not-windows-friendly/109/5 "2022-10-03T20:30:55Z")

</div>

I never sign up for these forums but this time I did just to say THANK YOU. If it weren’t for your detailed instructions I would still be beating my head against the wall!

Forum Moderator- this is written exactly as it should be done and works exactly as it should. I would STRONGLY suggest adding this to the official Kopia documentation!

---

<div class="post-metadata">

**Author:** ![ingul-buz](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/ingul-buz/32/417_2.png) [@ingul-buz](https://kopia.discourse.group/u/ingul-buz)\
**Post date:** [October 6, 2022, 10:14am UTC](https://kopia.discourse.group/t/kopiaui-sftp-is-not-windows-friendly/109/6 "2022-10-06T10:14:35Z")

</div>

You’re welcome. This issue has also come up on [Github](https://github.com/kopia/kopia/issues/2444) lately, with hopes of mitigating the requirement of the known\_hosts data. I would personally advocate making it optional (required by default), even though it has its own security issues. It may just be too complicated for an average Windows user.

---

<div class="post-metadata">

**Author:** ![droot](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@droot](https://kopia.discourse.group/u/droot)\
**Post date:** [February 2, 2023, 12:52am UTC](https://kopia.discourse.group/t/kopiaui-sftp-is-not-windows-friendly/109/7 "2023-02-02T00:52:21Z")

</div>

And if you struggle with key mismatch even if everything is ok, then it may be [this issue](https://github.com/kopia/kopia/issues/2443) of Kopia not accepting `ed25519` keys on SFTP right now
