Is there a way to set up a ChrootDirectory
for a system only for SFTP and not for ssh?
i.e. if I wanted to ssh into a server and have root be a certain directory, but SFTP into the same server and have a different directory as root, is that possible? I have been trying to toggle /etc/ssh/sshd_config
to make this work but it has not been successful yet. I do not have sudo access so I cannot add another user, so this would have to be on the same user.