
#Sftp setup for multiple users on linux how to
I would prefer to set this up from within linux console and azure template if possible so any instructions on how to overcome this issue would be greatly appreciated. First, create a group named sftp (add only if there is no sftp group else no need to add): groupadd sftp. access server via terminal/ssh/command line and then follow steps to executed mentioned commands for setup. I've logged into the console with these profiles and they've been able to see the folders and have confirmed they have full access so it just seems to be when you try to login with ftp client? In below setting/configs, using testuser1 as username and directory userhomedir1 to allow access for testuser1. I've edited this file to add more users and then edited the etc/passwd file with the user too but it doesn't allow the user to sign into sftp either. If the volume mount is set to "" and the users home folder to /home/user1 it successfully creates a directory in the file share called user1 which is great but then user1 can't login to sftp?Īlso just to add that there is no file path '/etc/sftp' - i found the nf file within run/sftp/nf. Then go back to our testing site TEST01 and see if we able to get and download the created file.

Below are the steps: cd /data/mysftpuser/upload. First, lets create a test file under /data/mysftpuser/upload. Each directory should talk to the users home folder E.G /home is the file share and /home/user1 is a directory. Now lets try to get a file from the SFTP server directory into our testing client. Still a little stuck on this, i have changed what i would like to setup as i've understood more about this so all i want is one file share in azure with multiple directories within the share. I'd rather just type the value but i'm not 100% sure what i can change the about to?

It's very long winded adding all of this and then adding the parameters and then also having to type the value. Just one other minor thing, how can you setup users without referencing parameters?
