Ok, so you don’t remember the password
ssh-keygen -t rsa
After the key has been created
ssh user@domain.com mkdir -p .ssh
cat ~/.ssh/id_rsa.pub | ssh user@domain.com 'cat >> .ssh/authorized_keys'
Ok, so you don’t remember the password
ssh-keygen -t rsa
After the key has been created
ssh user@domain.com mkdir -p .ssh
cat ~/.ssh/id_rsa.pub | ssh user@domain.com 'cat >> .ssh/authorized_keys'