The answer to the password question is:
- Edit the
/etc/ssh/sshd_config file to ensure that passwords are enabled.
Then restart the ssh service (HT - @tonioc). This will work for sysvinit systems:
And this should work for systemd systems:
systemctl restart ssh
And then either:
- Login with your key and change the passwd of the account if the password is locked.
- Add a new user account for the new user and add that user to whatever minimum groups are required to accomplish the new user's task.
Or (even better):
- Add a new user and have them give you a public key
- Add their key to their
~/.ssh/authorized_keys file if they don't know how to copy it themselves.
However, for the least number of changes but rather poor security, you can simply add another key to:
on the server.
You can have as many keys as you want in the authorized_keys file. It's one key per line with options prepended.
There are many options that can be added to the
Of course, as others have pointed out, it's not a good idea to have more than one user per account unless it's run by a team. Temporary privileged access or accounts are probably not a good idea.