I have a home PC and I created a reverse port forwarding to a server. Now I would like to go access to some people to the Home PC through this server. I would like to control the access of the user on this server so I added the following lines to the /etc/ssh/sshd_config
Match User restricteduser
ChrootDirectory /home/restricteduser
AllowAgentForwarding no
PermitOpen localhost:3333
but when I'm trying to connect to the server
ssh restricteduser@serverIP
restricteduser@serverIP's password:
I'm getting the following error:
Write failed: Connection reset by peer