Hi Is it possible to block login via SSH but allow SCP/SFTP and lock user in home directory?
P poldas Contributor Joined Sep 18, 2012 Messages 104 Feb 16, 2017 #1 Hi Is it possible to block login via SSH but allow SCP/SFTP and lock user in home directory?
P poldas Contributor Joined Sep 18, 2012 Messages 104 Feb 16, 2017 #3 Thanks scponly this is it! But still I don't know how to lock user in home directory...
D dlavigne Guest Feb 17, 2017 #4 So, that is a compile option which is off by default in FreeBSD: http://www.freshports.org/shells/scponly/. You could create a feature request at bugs.freenas.org asking that it be enabled. If you do, post the issue number here.
So, that is a compile option which is off by default in FreeBSD: http://www.freshports.org/shells/scponly/. You could create a feature request at bugs.freenas.org asking that it be enabled. If you do, post the issue number here.
P poldas Contributor Joined Sep 18, 2012 Messages 104 Feb 17, 2017 #5 maybe I can change something in sshd.conf via Extra options in SSH configuration in the web GUI