On 3/26/20 6:19 PM, bruce wrote:
Hey.
My apologies. I now I've asked this/solved this before. can't
findwhere I placed the soln.
I have a remote VM. I've created a private/public ssh key for user
'bob' The public key is in the required location on the remote VM.
On my normal local box,, logged in as user 'bob' I have the private
key. I can login as user bob -
ssh bob@remoteServer1
this works, no prob.
My question
If I'm on user "linda"s machine, logged in as linda, what do I need
to do to be able to ssh into the remote server as user 'bob'??
Do I place the private key of user 'bob' in the required ssh file
within user linda's ssh dir?
Which implies that I then need to remove the private key once I leave
if I don't want linda accessing the remote box later on..
thanks
Dear Bruce,
Yes you need to copy your private key to .ssh and then do a normal ssh
bob@remoteserver. If your key has a passphrase protection you might
consider it safe enough as Linda won't be able to log in to remoteserver
and remoteserver will still be well secured.
Else, yes, you will need to remote that key if you don't want Linda to
be able to log in remoteserver.
Fred