113 reputation
4
bio website twitter/lpacheco
location Rio De Janeiro, Brazil
age 41
visits member for 3 years, 8 months
seen Sep 19 at 23:01

Jan
11
comment When using ssh with priv/pub keys, how to connect to the destination using a user different from the origin machine?
If I owned both accounts, I could do that, but I own user2 and want to allow user1 to connect as user2 in a single machine. I understand that if I give user1 the private key of user2, he would be able to connect as user2 to any other machine that user2 has access, right?
Jan
11
awarded  Scholar
Jan
11
accepted When using ssh with priv/pub keys, how to connect to the destination using a user different from the origin machine?
Jan
11
comment When using ssh with priv/pub keys, how to connect to the destination using a user different from the origin machine?
You were right, my problem were the permissions. When I set the permissions according with what is recommended in the OpenSSH FAQ item 3.14, it worked. openssh.org/faq.html#3.14
Jan
11
awarded  Editor
Jan
11
comment When using ssh with priv/pub keys, how to connect to the destination using a user different from the origin machine?
That's what I did, but it isn't working.
Jan
11
revised When using ssh with priv/pub keys, how to connect to the destination using a user different from the origin machine?
Made clear that I generated the key for user1 on hostA.
Jan
10
awarded  Student
Jan
10
awarded  Supporter
Jan
10
asked When using ssh with priv/pub keys, how to connect to the destination using a user different from the origin machine?