Setting the extended file attributes using SSH.NET SftpClient

安稳与你 提交于 2019-12-05 22:05:00

You cannot add random extended attributes like user.from. You can add only attributes that your server explicitly supports.

You didn't specify what SFTP server are you using. But as you are connecting to Ubuntu server, one can assume, that it's the the most widespread *nix SFTP server, OpenSSH. And OpenSSH does not support any extended attribute. It silently ignores all of them.


See also these discussions:

And the relevant section of SFTP specification:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!