Today, we restricted the access to ssh to a single user through SSH keys.
So we changed the file /etc/ssh/sshd_config and added the following line
- AllowUsers <username>
We restarted the service:
- sudo service ssh restart
But Now, when we connect
- ssh -i <key_file> <username>@<server>.cloudapp.net -p <port>
we are prompted to type a password even after presenting the correct private key and typing the correct passphrase
(We used to connect without a problem before this change, mentioned above)
Is there any workaround to rollback that change, we're locked out of this VM, and cannot access it anymore.
Thanks