Can connect through SFTP remotely, However cannot UPLOAD
Forum » Forum / Network Access » Can connect through SFTP remotely, However cannot UPLOAD
Started by: atdakoreatdakore
On: 1208322035|%e %b %Y, %H:%M %Z|agohover
Number of posts: 9
rss icon RSS: New posts
Summary:
Permission denied whenever i try and upload using SFTP in Transmit on a MAC
Can connect through SFTP remotely, However cannot UPLOAD
atdakoreatdakore 1208322035|%e %b %Y, %H:%M %Z|agohover

So I have set up ssh
and vsftpd
and my routers
And now i can connect to the MBW from anywhere in the world and access the files i want.
However there is no permission to write any data to it.
Please HELP.
P.S. I am an experienced computer user, but a total linux noob, so please be nice and be precise.

unfold Can connect through SFTP remotely, However cannot UPLOAD by atdakoreatdakore, 1208322035|%e %b %Y, %H:%M %Z|agohover
Re: Can connect through SFTP remotely, However cannot UPLOAD
JE76JE76 1257172229|%e %b %Y, %H:%M %Z|agohover

Hi Atdakore
seems like you're some steps ahead of me. My goal is also to have access to my MBW from anywhere using VSFTPD of SFTP. I have the ssh setup, how to get the vsftpd running? and what has to be configured on the router?
thanks in advance

unfold Re: Can connect through SFTP remotely, However cannot UPLOAD by JE76JE76, 1257172229|%e %b %Y, %H:%M %Z|agohover
Re: Can connect through SFTP remotely, However cannot UPLOAD
wpiterwpiter 1208330198|%e %b %Y, %H:%M %Z|agohover

Under what account did you log in? Please log in as root, then you should be able to upload files.

Re: Can connect through SFTP remotely, However cannot UPLOAD
atdakoreatdakore 1208346729|%e %b %Y, %H:%M %Z|agohover

I used the master login.
What is the root user and password?
Or how do i find it?

Re: Can connect through SFTP remotely, However cannot UPLOAD
wpiterwpiter 1208361332|%e %b %Y, %H:%M %Z|agohover

I assume you are using PuTTy or something simmilar?

Open PuTTy and log in using your username and password.
Then type 'su' (short for switch user). Now you are root. (as root your username is 'root') If this is your first login as root you will be asked to create a password. Do this and then and your session.

Go to your FTP client and log in using 'root' as username' and the password you created just now as your password. Now you should be able to upload data.

Re: Can connect through SFTP remotely, However cannot UPLOAD
atdakoreatdakore 1208365720|%e %b %Y, %H:%M %Z|agohover

Thanks thats awesome.
I am actually using Transmit for Mac.
I did get it working
However Root can access every directory read and write.
How can i setup a user for sftp that can read and write? that can only read and write a single directory?

Re: Can connect through SFTP remotely, However cannot UPLOAD
PeteUKPeteUK 1221405929|%e %b %Y, %H:%M %Z|agohover

Hi, I'm having the same issues, is it possible to create a user that has R/W permissions on a particular folder? Or is it restricted to root that can upload new files? I'm trying to create a public share folder that others can access and upload to, without giving them ROOT permissions - can it be done?

Re: Can connect through SFTP remotely, However cannot UPLOAD
PeteUKPeteUK 1221407398|%e %b %Y, %H:%M %Z|agohover

Done it, i needed to change the directory permissions to 777 so that the guest user can upload to the public share folder.

chmod 777 /path/folder

Re: Can connect through SFTP remotely, However cannot UPLOAD
The PuppeteerThe Puppeteer 1257478951|%e %b %Y, %H:%M %Z|agohover

I created a script that changes the umask value to 002. By default is 022, which means that group users cannot write. You essentially need to create a sftp jail

I'm puting together a step by step at the moment to show how to do this. If you only have a single user, it's not so hard, but when you have more than one user with sftp or samba, it's trickier to get everything working.

New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License