I'm trying to clone a private github repo through ssh.
I've generate pair keys with keygen that are stored in .ssh, inside a non-root user home directory.
/home/nonroot/.ssh
However, when I try:
git clone [email protected]:user/repo.git
I get:
Cloning into 'discord-bot'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Following this, I've tried:
ssh -T [email protected]
And got:
bash: /usr/bin/ssh: Permission denied
What should I do?
Running Ubuntu 20.04