I'm creating a batch file to be run on scheduled task on windows that sftp's a file using winscp to a linux machine.
The password is saved in this bat file for all to see, so i need to create a user on the Linux machine that can't do anything but have write access to 1 folder.
I don't want you to walk me through it from A to Z, but after I created the user, how do I do things like:
- cannot log into server using command line (SSH), if possible.
- make sure only one folder is allowed to access via sftp, and nothing else, not even home directory. can I eliminate home directory?
I might consider the home directory "be" the one folder that they have access to, if that's easier.
Also any pointers on how I can only allow txt file to be sent, no exe, pl, etc extensions allowed?
thanks guys,
Dan