I know that I can create shortcuts for specific users/servers on the client side via
/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:
I am actually chrooted to
name.server.top where I will use sftp.
/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?
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.