# SSH\_FX\_OP\_UNSUPPORTED when creating sftp repository

**URL:** <https://kopia.discourse.group/t/ssh-fx-op-unsupported-when-creating-sftp-repository/1756>\
**Category:** Support\
**Created:** [January 28, 2023, 9:44am UTC](https://kopia.discourse.group/t/ssh-fx-op-unsupported-when-creating-sftp-repository/1756 "2023-01-28T09:44:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Franck](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/franck/32/597_2.png) [@Franck](https://kopia.discourse.group/u/Franck)\
**Post date:** [January 28, 2023, 9:44am UTC](https://kopia.discourse.group/t/ssh-fx-op-unsupported-when-creating-sftp-repository/1756/1 "2023-01-28T09:44:31Z")

</div>

Hi,

On windows, I try to create a sftp repository but when I use ;

```auto
repository create sftp --path="/" --host="1.2.3.4" --username="xxxxx" --sftp-password="xxxxx" --known-hosts="C:\Users\xxxxx\.ssh\known_hosts"

```

I have this error 🙂

```auto
WARN unable to persist sharding parameters: unexpected error renaming file on SFTP: sftp: "Operation not supported." (SSH_FX_OP_UNSUPPORTED)

```

ssh problem or kopia problem ?

Thanks

Franck

---

<div class="post-metadata">

**Author:** ![IcePic](https://avatars.discourse-cdn.com/v4/letter/i/74df32/32.png) [@IcePic](https://kopia.discourse.group/u/IcePic)\
**Post date:** [January 30, 2023, 9:09am UTC](https://kopia.discourse.group/t/ssh-fx-op-unsupported-when-creating-sftp-repository/1756/2 "2023-01-30T09:09:00Z")

</div>

Do you know what software and version is running at the other end?  
(sounds like it doesn’t support renames, which is bad I guess)

---

<div class="post-metadata">

**Author:** ![Franck](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/franck/32/597_2.png) [@Franck](https://kopia.discourse.group/u/Franck)\
**Post date:** [January 30, 2023, 9:51am UTC](https://kopia.discourse.group/t/ssh-fx-op-unsupported-when-creating-sftp-repository/1756/3 "2023-01-30T09:51:17Z")

</div>

Hi,

It’s sftp server by n/software

> **[SFTP Server | SSH File Server | nsoftware](https://www.nsoftware.com/sftp/sftpserver/)**
>
> SFTP Server is a lightweight high performance SSH File Server designed provide robust security and high throughput while being simple to use and configure.

the free version

Do you know other free sftp server that work with kopia ?

Thanks in advance

Franck

---

<div class="post-metadata">

**Author:** ![IcePic](https://avatars.discourse-cdn.com/v4/letter/i/74df32/32.png) [@IcePic](https://kopia.discourse.group/u/IcePic)\
**Post date:** [January 30, 2023, 10:36am UTC](https://kopia.discourse.group/t/ssh-fx-op-unsupported-when-creating-sftp-repository/1756/4 "2023-01-30T10:36:09Z")

</div>

Well, I’m from the unix side, there everyone can run “OpenSSH”, which added “posix-rename” in 2007-2008, so that might be why noone else have seen this problem.  
As for sftp servers on Windows, I can’t really help. If you have WSL(2?) on a windows box, sshd and sftp should be a part of it.

Seems like there are lots of guides on how to use WSL(2) to allow someone to ssh/scp/sftp into it, here is one:

> **[Copy Files to Windows Subsystem for Linux WSL2 with SSH](https://www.virtualizationhowto.com/2021/01/copy-files-to-windows-subsystem-for-linux-wsl2-with-ssh/)**
>
> Copy Files to Windows Subsystem for Linux WSL2 with SSH by default mount in WSL as well as using the steps to enable SSH in WSL and WSL2

---

<div class="post-metadata">

**Author:** ![IcePic](https://avatars.discourse-cdn.com/v4/letter/i/74df32/32.png) [@IcePic](https://kopia.discourse.group/u/IcePic)\
**Post date:** [January 30, 2023, 10:51am UTC](https://kopia.discourse.group/t/ssh-fx-op-unsupported-when-creating-sftp-repository/1756/5 "2023-01-30T10:51:07Z")

</div>

Don’t know if I am looking at the right part, but there is a setting for how to handle certain types of renames

> **[SFTP Drive V2 Reference](https://cdn.nsoftware.com/help/ND2/app/pg_advdrivesettings.htm)**
>
> Drives Reference

If enabled and the destination file already exists, the destination file will be renamed to have a temporary extension as a backup. The original file will be renamed to the destination file and the temporary file will be deleted. If the rename operation fails for any reason the temporary file is renamed back to the destination file so effectively no changes occur when the rename fails.

- 0 - Disabled (default)
- 1 - Enabled

so if this indeed is the wrong part of their webdocs, do look at the manual for your sftp server and see if there is a setting or knob to twist that has anything to do with renames, and retry again.

---

<div class="post-metadata">

**Author:** ![Franck](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/franck/32/597_2.png) [@Franck](https://kopia.discourse.group/u/Franck)\
**Post date:** [January 30, 2023, 10:55am UTC](https://kopia.discourse.group/t/ssh-fx-op-unsupported-when-creating-sftp-repository/1756/6 "2023-01-30T10:55:14Z")

</div>

I will try it and even the open-ssh windows version 😉

Thanks for your answer

Franck

---

<div class="post-metadata">

**Author:** ![Franck](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/franck/32/597_2.png) [@Franck](https://kopia.discourse.group/u/Franck)\
**Post date:** [January 31, 2023, 7:55am UTC](https://kopia.discourse.group/t/ssh-fx-op-unsupported-when-creating-sftp-repository/1756/7 "2023-01-31T07:55:48Z")

</div>

SFTP Drive is just a client part for sftp

---

<div class="post-metadata">

**Author:** ![IcePic](https://avatars.discourse-cdn.com/v4/letter/i/74df32/32.png) [@IcePic](https://kopia.discourse.group/u/IcePic)\
**Post date:** [January 31, 2023, 9:10am UTC](https://kopia.discourse.group/t/ssh-fx-op-unsupported-when-creating-sftp-repository/1756/8 "2023-01-31T09:10:38Z")

</div>

Ok, sorry. googling for “sftp rename” and the company name brought so many wildly different hits. The point still stands, there could be an option in the program to control different outcomes of rename operations. Also, if it is a commercial program, one could be so bold as to ask them for help, since that would presumably be a part of what you pay for.  
See if you can run kopia in the most verbose possible manner while getting the error, to see if it will show exactly what command it sent, that would at least help when issuing a ticket to the company that makes the product.
