Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird Behaviors in Azure.Blob.Storage SFTP #368

Open
ufukozkanli opened this issue Nov 21, 2022 · 4 comments
Open

Weird Behaviors in Azure.Blob.Storage SFTP #368

ufukozkanli opened this issue Nov 21, 2022 · 4 comments

Comments

@ufukozkanli
Copy link

ufukozkanli commented Nov 21, 2022

Azure Blob Storage now supports SFTP

I tried to mount Blob Storage Account with "sshfs-win" it was successfully mounted Drive as "Z:" with full access (Read,Write,List,Delete,Create)

I can list files/directories in "Z:"
I can create directories in "Z:"
I can copy file/directories to local drive from "Z:"

BUT
I can't create a new file in "Z:"
I can't copy local files to "Z:"

It says "You need permission to perform this action"

I am trying to understand. If the problem is because of my configuration or it is the limitation of Azure Blob SFTP

@AffectedArc07
Copy link

Same here, definitely believe it's an issue with Azure storage because the system works if it target a normal SFTP.

Might look into how this works and how viable an "Azure Compatibility Mode" is.

@segfly
Copy link

segfly commented Mar 5, 2023

Ran into the same problem. I tried some of the suggestions in other issues related to permissions, but no success: #101 (comment)

On linux, sshfs works a bit better with Azure, but still has issues. I can create files, but modifying/replacing file content does not work. I suspect this may be due to the Azure limitation for random writes and appends.

Maybe on windows create file operations are trying to create a file then separately update the contents? I think I've seen such a thing happen with CIFS. But it's been a while since I've dug into some of these details with Samba.

If that is indeed how create file operations work for windows mapped drives, then there is probably no easy workaround.

@smehar
Copy link

smehar commented Mar 8, 2023

Hi, I tried to connect using sshfs and I mounted the container. However. I have no access to the container. all access refused on the drive even reading and I can't change any permission on it from windows.
I am not sure that Azure allow ssh on sftp. The only way that worked for me was the sftp command or using fillezilla. However I need to use the sftp container as a mounted drive with full access from windows. If you find any solution for this , please update the page.

@smehar
Copy link

smehar commented Mar 13, 2023

Hi, with this command I can only create folder but no files are authorized.
sshfs -f -o idmap=user,create_dir_umask=0001,create_file_umask=0001,uid=-1,gid=-1 [email protected]
Hope this will be fixed soon to be able to use Azure sftp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants