I generated a public/private rsa key pair to access the remote host via ssh without entering the password, everything worked fine till I made the user's folder hidden (Added . to name /home/.user). Now while connecting with SSH it can't find the public key to connect to and asks for a password.
ssh -i my_private_key [email protected]
Once I connect using the password it says:
Could not chdir to home directory /home/user: No such file or directory
P.S Did not change
.sshd_config file. So how to fix it so it works with a hidden folder?