I am on rocky linux 9.2, I want root home directory to be simply ‘/‘ not root or anything else so I changed the sshd configuration file to this
Match User root
ChrootDirectory none
AuthorizedKeysFile .ssh/authorized_keys
AllowTcpForwarding yes
PermitTunnel yes
ForceCommand none
but now i cant connnect to ssh at all. It depends on the application but it just says failed to initialize. I also tried the following combinations
Match User root
ChrootDirectory /
AuthorizedKeysFile .ssh/authorized_keys
AllowTcpForwarding yes
PermitTunnel yes
ForceCommand none
Match User root
ChrootDirectory /
Match User root
ChrootDirectory /var