I want to have user with access to only one folder.
I followed unix.stackexchange question, badr answer, I am able to create a user with access to only one folder. It is working fine. The user is able to create / transfer files. I am able to connect with WinSCP.
added below content at the bottom of /etc/ssh/sshd_config
Match Group exchangefiles
# Force the connection to use SFTP and chroot to the required directory.
ForceCommand internal-sftp
ChrootDirectory /var/www/GroupFolder/
# Disable tunneling, authentication agent, TCP and X11 forwarding.
PermitTunnel no
AllowAgentForwarding no
AllowTcpForwarding no
X11Forwarding no
When I try to login with Putty, Putty console is automatically closed.
I want to give below permission to user,
Need to login with Putty (SSH access - Should not have permission to go out from his directory)
Can able to run Python script / Java files
Can able to access MySql
Any idea on how to proceed on this ?
sftp
sudo
without administrative privileges for what you need?