Okay, this is something I've searched for, but I've been finding all kinds of different methods which has me a bit confused as to what the best way to do this would be.
So I'm hoping for some help with creating a user account whose sole purpose is for SFTP access to a single folder on my machine. I've enabled Remote Login to enable SFTP, and I now want to add a user which can sign in for SFTP access to a single folder.
I've tried just creating a Sharing Only account, but this is no good as it can't connect via SFTP at all, even if given a path to a folder owned by that user. The only way to get it to connect seems to be to give it a home folder and a login shell, however this effectively turns it into a standard account, causing it to appear on the login screen etc., which I don't really want.
So, I'm wondering what the best way is to create an account that can only login via SFTP, and access a single folder assigned to them (preferably forcing them to do so so I don't need to use absolute paths all the time).
So I'm hoping for some help with creating a user account whose sole purpose is for SFTP access to a single folder on my machine. I've enabled Remote Login to enable SFTP, and I now want to add a user which can sign in for SFTP access to a single folder.
I've tried just creating a Sharing Only account, but this is no good as it can't connect via SFTP at all, even if given a path to a folder owned by that user. The only way to get it to connect seems to be to give it a home folder and a login shell, however this effectively turns it into a standard account, causing it to appear on the login screen etc., which I don't really want.
So, I'm wondering what the best way is to create an account that can only login via SFTP, and access a single folder assigned to them (preferably forcing them to do so so I don't need to use absolute paths all the time).