I had created a new user ( disable password command) on my instance. while giving him access somehow i have edited file at etc/ssh/sshd_config at line 33
#AuthorizedKeysFile %h/.ssh/authorized_keys
//i am have uncommented that
AuthorizedKeysFile %h/.ssh/authorized_keys
after that my new user access with ssh key started working but ubuntu ssh access is giving error "server refused our key"
Number of ways i have tired
- Creating tmp instance detaching volumne and mount method ( i have used this method once on other intance when i losted my key that worked well that time ) this time case may be differ its not working giving same error on new instance
Any Idea how to make it work ?
Another way when want to run any sudo command with newuser it ask for that user password which i never created. even tied ubuntu password not working