Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Can't connect through ssh to Ubuntu 13.10 VM - Recover procedure

$
0
0

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 



Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>