I know that I can create shortcuts for specific users/servers on the client side via ~/.ssh/config or /etc/ssh/ssh_config, but I would like to do something similar but on the server side.
That is, when I issue on the client:
ssh [email protected]
I am actually chrooted to
/home/jon/pub
on name.server.top where I will use sftp.
In /etc/ssh/sshd_config I have seen examples as the following:
Subsystem sftp internal-sftp
Match user pub
ChrootDirectory %h
ForceCommand internal-sftp
AllowTcpForwarding no
Will also the following work?
ChrootDirectory /home/jon/pub
Is it possible to create the pub as a sort of virtual user? That is, the remote user logs as pub and his public key is in /home/jon/.ssh/authorized_keys, so without the hassle of creating a separate /home/pub/.ssh/authorized_keys or the /home/pub directory at all.