I generated my ssh key on my local machine.
I then used the following command to copy my public key onto my server:
ssh-copy-id username@remote_host
. That went smoothly.I have confirmed that my local machine's
~/.ssh/id_rsa.pub
has been copied onto my server atmy_user's_home_directory/.ssh/authorized_keys
. There are no other files in there.I've also copied that same public key into Gitlab.
When I try to
git clone
a repo onto the server, I'm told:
[email protected]: Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
- I can ssh easily enough into my server. But since my server doesn't hold my private key, it sort of makes sense to me that I wouldn't be able to ssh git clone. What's the normal procedure here? I can do a regular https download, is that the standard route?