New answers tagged sftp
SFTP is the SSH File Transfer protocol, you could use rsync to do just that. With recursion: rsync -azP --exclude="*" --include="*.pdf" user@SERVER:/path/to/folder/ /path/to/folder/ Without recursion: rsync -azP --include '*/' --include '*.pdf' --exclude '*' user@SERVER:/path/to/folder/ /path/to/folder/ Hope it helps!
man sshd_config 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 writable by any other user or group. This works, because /home is owned by root and not writable by others users Match user pippo ChrootDirectory /home AllowTcpForwarding ...
I think you just have to specify ChrootDirectory /home it will substitute to /home/bob automagically. Otherwise it is looking into /home/bob/bob Edit: Also make sure that the chroot directory is owned by root and is not group writable. If you need to have a writable directory then you need to create a subfolder chown root /home/bob chmod go-w /home/bob ...
you can use the normal shell without the link, for restrited shell, in /etc/profile put this if [[ $USER == "pluto" ]]; then export PATH=$HOME/bin readonly PATH set -r fi and mkdir /home/pluto/bin as root ln -s /bin/ls /home/pluto/bin/ls In this way sftp work and pluto can only use the ls command
rbash won't let you run commands with a leading /, if that's being attempted then it will simply exit. Unless you're using the internal sftp-server, an attempt to exec /usr/libexec/sftp-server will fail. Using Subsystem sftp internal-sftp in the sshd_config will fix that. However, using rbash won't stop sftp from wandering around your filesystem, ...
I think you need to enable some selinux bool, for more information about a selinux bools of a service, you can type from your shell man sftpd_selinux [root@worktux ~]# getsebool -a | grep sftp sftpd_anon_write --> off sftpd_enable_homedirs --> off sftpd_full_access --> off sftpd_write_ssh_home --> off
Top 50 recent answers are included