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,133 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
- 107,489
ssh
into? Can you usessh
with password? Please edit your question and add more information about your setup. – user68186 Feb 20 '19 at 20:45ssh
is "properly" setup by whoever has root privileges, You can setup password less login for yourself. This question How can I set up password less ssh login? has been already answered. – user68186 Feb 21 '19 at 18:12