Tag Info

Hot answers tagged

2

The OpenSSH sshd_config documentation is pretty clear about the requirements for the chroot directory. The restriction applies any time the ChrootDirectory directive is used: ChrootDirectory Specifies the pathname of a directory to chroot(2) to after authentication. All components of the pathname must be root- owned directories that are not ...


2

When not using chroot or internal-sftp, the OpenSSH package uses a program named sftp-server to handle incoming SFTP sessions. The documentation for sftp-server lists a command-line option for the starting directory: -d start_directory specifies an alternate starting directory for users. The pathname may contain the following tokens that are expanded ...


1

Your permissions on / are too open. I wonder how you ended up with that. That should be 0755. So you'll need to change that. The rest looks OK.


1

If you take a look to sftp manual (sftp(1)) you can see there is a way to perform a ls sorting by mtime (ls -t). So you can run sftp twice: First time you perform a ls -lt (or ls -lrt to reverse order) redirect the output to a file and just read the last line of listing, so you have the filename, and on the second round you can specify the file to download. ...


1

Unfortunately I don't have enough reputation to comment because all I wanted to do is stress how important the comment by Richard Fairhurst is and how it should be added to the "official answer". I have seen people here and elsewhere having trouble setting the user home directory or having the user home directory as a "default directory". That's just because ...



Only top voted, non community-wiki answers of a minimum length are eligible