Hi,
I have openssh installed and it works great right out of the box. However, I don't want people accessing everything on my machine.
My machine is behind NAT and ufw firewall. I have configured both so that port 22 is open. I've added the new users I want to have limited access and assigned them to group "sambashare" (just because its convenient.)
When the bottom bit of my config file "/etc/ssh/sshd_config" is set as shown below, everything works great:
Whenever I make the change to enable "ChrootDirectory" so that it limits the users access, I simply remove the # and it looks like this:#Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp internal-sftp
UsePAM yes
Match Group sambashare
# ChrootDirectory /media/Media/Public
ForceCommand internal-sftp
AllowTcpForwarding no
However, thats when I start running into problems. When I try logging in with Filezilla; I am not able to connect and this is the response I get from Filezilla:#Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp internal-sftp
UsePAM yes
Match Group sambashare
ChrootDirectory /media/Media/Public
ForceCommand internal-sftp
AllowTcpForwarding no
Anyone know how to get this up and running?Status: Connecting to ##.###.###.###...
Response: fzSftp started
Command: open "user@##.###.###.###" 22
Command: Trust new Hostkey: Once
Command: Pass: ********
Error: Could not connect to server



Adv Reply

Bookmarks