Can we set up Passwordless SSH in Ubuntu (18.04) without root privileges? Is there any way to access files in /etc directory without root permissions? (I need to be able to set up Passwordless SSH between non-root users from between a local and remote system, but I don't have the root privileges on either system)
Asked
Active
Viewed 1,145 times
1 Answers
3
If your ssh server already has the publickey authentication method enabled, all you need to do is to append your own public key to the .ssh/authorized_keys file in the home directory of your server user. No further administrative configuration required for that.
And configuration files in /etc are normally all owned by the root user and not writable by anyone else, you can not bypass that as regular user without sudo. Otherwise that would be a security threat.
Byte Commander
- 110,243