Hiya,
I want to allow some trusted users to scp files into my server (to an specific user), but I do not want to give these users a home, neither ssh login.
I'm having problems to understand the correct settings of users/groups I have to create to allow this to happen.
I will put an example;
Having:
MyUser@MyServer
MyUser
belongs to the groupMyGroup
- MyUser's home will be lets say,
/home/MyUser
SFTPGuy1@OtherBox1
SFTPGuy2@OtherBox2
They give me their id_dsa.pub
's and I add it to my authorized_keys
I reckon then, I'd do in my server something like
useradd -d /home/MyUser -s /bin/false SFTPGuy1
(and the same for the other..)
And for the last, useradd -G MyGroup SFTPGuy1
(then again, for the other guy)
I'd expect then, the SFTPGuys to be able to sftp -o IdentityFile=id_dsa MyServer
and to be taken to MyUser's home...
Well, this is not the case... SFTP just keeps asking me for a password.
Could someone point out what am I missing?
Thanks a mil,
f.
EDIT: Just became aware of ServerFault and re-opened there.