Assuming that the user's private ssh key is in ~/.ssh and called id_rsa.