MacOS – How to add a guest public ssh key for remote access

macosssh

I need to add a developers public ssh key to my user account so that he can access my console and help debug a node.JS issue. Any suggestions on where to start

Best Answer

Have them give you their public key, e. g. id_rsa.pub. Add that to the end of your ~/.ssh/authorized_keys file (e.g. by running cat id_rsa.pub >> ~/.ssh/authorized_keys in Terminal).