FG
💻 Software

SSH key authentication with another user

Fresh6 days ago
Mar 15, 202631302 views
Confidence Score0%
0%

Problem

I'm confusing myself on some ssh key-based authentication. Let's say I have: I want to SSH from Host A, as user , into Host B. Would I have to copy the user's private key to my ssh directory and then use the -I parameter or setup an SSH config file so that when I ssh to that host as user , the user…

Error Output

Host A:
user tom
  .ssh
     tom_private_key
     tom_public_key



Host B:
user shared
   .ssh
     shared_private_key
     shared_public_key

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: SSH key authentication with another user

Low Risk

You need to populate the file on Host B with the public keys of all the users you want to have access to the shared account. Only the client needs the user's private key. The server only needs to know the public keys which are allowed to connect to …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment