I've set up password-less login for user1
on a Ubuntu machine to login automatically into a Fedora box using the publickey authentication method. Everything is working smoothly. Now, there is a user2
on Fedora but he does not
have an account on Ubuntu. I tried to login as user2
from Ubuntu to but got the following error :
user1@Ubuntu:~$ ssh firstname.lastname@example.org
Permission denied (publickey,gssapi-with-mic).
Predictably neither scp or sftp work either. I have several questions as a result.
1.Is the SSH server rejecting user2
login because I am inadvertently using user1
keys (as I am logged in as user1
2. Do I need to have a user2
account on Ubuntu and public/private key authentication setup with Fedora for user2
to be able to login ?
3. Is there a method I can use to password login as user2
from Ubuntu to Fedora (even though there is no user2
account on Ubuntu) AND still keep password-less login for user1
or do I have to have password-less login for both ?
At present the only way to access the user2
account from Ubuntu is to SSH using the user1
account and then su to user2