How to add a second SSH key so another user connects to SFTP?
I have been able to connect to SFTP with my own key, but I want my client to have access to SFTP too. I made a key pair for him and added the public key to Digital Ocean. I tried to add the public key with the command
sudo ssh-keygen -e -f ~/.ssh/fXXXX_rsa.pub | sudo tee /etc/proftpd/authorized_keys/fXXXX after adding the public key in the
~/.ssh directory, but it didn’t work – asked for a passphrase while the key didn’t have one.
Could someone help me on this ?