hey ed. I dont want to do pub private key for linda.. I'm thinking of situation where I'll be at a box that's not mine and want to get to my remote box... worst case I could just log in I suppose.
On Thu, Mar 26, 2020, 8:37 AM Ed Greshko <ed.gres...@greshko.com> wrote: > On 2020-03-26 20:24, Frederic Muller wrote: > > On 3/26/20 7:11 PM, Ed Greshko wrote: > >> On 2020-03-26 19:19, 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? > >> Absolutely not. > >> > >> Private mean "private". You never take a user's private key and give > it to another user. > >> > >>> 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.. > >>> > >> If "linda" wants to "ssh bob@remoteServer1" the procedure is the same. > >> > >> The user "linda" runs "ssh-keygen" to generate her own key-pair. > >> > >> Then you can manually append linda's public-key to bob's > ~/.ssh/authorized_keys or linda runs > >> "ssh-copy-id bob@remoteServer1". To do the ssh-copy-id she would need > to know the password > >> of bob. > >> > >> > > Yes much better advice :-) > > > > Thank you. > > > > Welcome. > > I should have added that if you no longer want linda to access bob you > just remove her public key > from bob's authorized_keys file. > > -- > The key to getting good answers is to ask good questions. > _______________________________________________ > users mailing list -- users@lists.fedoraproject.org > To unsubscribe send an email to users-le...@lists.fedoraproject.org > Fedora Code of Conduct: > https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org >
_______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org