Comments on: How to Configure SFTP Server with Chroot in Debian 10 https://www.linuxtechi.com/configure-sftp-chroot-debian10/ Wed, 12 Aug 2020 20:48:11 +0000 hourly 1 By: Mike https://www.linuxtechi.com/configure-sftp-chroot-debian10/#comment-21350 Wed, 12 Aug 2020 20:48:11 +0000 https://www.linuxtechi.com/?p=8901#comment-21350 In reply to Kirk.

Make the public key directory – mkdir /home/$User/.ssh

Make the key file to hold the key touch /home/$User/.ssh/authorized_keys

Give the user ownership of their key folder – chown $User:$User /home/$User/.ssh && chown $User:$User /home/$User/.ssh/authorized_keys

Modify permissions on ssh folder – chmod 0700 /home/$User/.ssh

Possibly modify the key file permissions – chmod 640 /home/$User/.ssh/authorized_keys <— Not 100% if this needs to be done try without it first and if it wont work add it in

Add the public key – /home/$User/.ssh/authorized_keys

Restart ssh – systemctl restart sshd

]]>
By: Mike https://www.linuxtechi.com/configure-sftp-chroot-debian10/#comment-21349 Wed, 12 Aug 2020 19:51:46 +0000 https://www.linuxtechi.com/?p=8901#comment-21349 In reply to Kirk.

^ This. I added SSH key in and server refuses everytime and requires password

]]>
By: Kirk https://www.linuxtechi.com/configure-sftp-chroot-debian10/#comment-20194 Thu, 14 May 2020 05:36:33 +0000 https://www.linuxtechi.com/?p=8901#comment-20194 Possible to enable an RSA fingerprint or RSA Key? Or is username / password the only authentication method?

]]>
By: Klango https://www.linuxtechi.com/configure-sftp-chroot-debian10/#comment-18908 Mon, 24 Feb 2020 17:45:04 +0000 https://www.linuxtechi.com/?p=8901#comment-18908 I followed this guide and it worked for me, at least until I rebooted the host. Now, every time I test the connection using WinSCP or Filezilla, its trying to open / folder instead of redirecting to the subfolder under the homefolder for the user. Can’t figure it out, any ideas?

]]>
By: drakkan https://www.linuxtechi.com/configure-sftp-chroot-debian10/#comment-16478 Mon, 28 Oct 2019 12:41:59 +0000 https://www.linuxtechi.com/?p=8901#comment-16478 You can also try SFTPGo

‘https://github.com/drakkan/sftpgo’

it has chroot support builtin, virtual quota, atomic uploads, bandwidth throttling and many other features.

It can execute configurable custom commands and/or send HTTP notifications on upload, download, delete or rename.

It is written in Go, so no runtime dependencies, and it works on Windows too

]]>
By: Pradeep Kumar https://www.linuxtechi.com/configure-sftp-chroot-debian10/#comment-14838 Tue, 17 Sep 2019 16:11:29 +0000 https://www.linuxtechi.com/?p=8901#comment-14838 In reply to sumit Kumar.

%h means users will directly land into its home directory when they do sftp command.
internal-sftp is a configuration keyword that tells sshd to use SFTP server code built-into sshd.
You need to set the required permissions on User’s home directory

]]>
By: sumit Kumar https://www.linuxtechi.com/configure-sftp-chroot-debian10/#comment-14818 Tue, 17 Sep 2019 08:49:13 +0000 https://www.linuxtechi.com/?p=8901#comment-14818 Please describe internal-sftp,
%h,
I unable to ls -l and pad, cd, get and put command. permission denied,
Please describe.

]]>