Question Setting up SSH
I'm on Linux MX and I'm having trouble connecting my computer to my repos, to clone and what-not.
I think I'm following the guide on it. I want to use GitFiend to manage my projects, but using got in the command line it first throws an key authentication error and asks if I want to continue anyway. I say yes and it creates a "known_hosts" file, but then throws a permission denied error.
I can't tell what I'm doing wrong. These were my steps:
1 - Created a ~/.ssh directory
2 - ssh-keygen -t ed25519 -C "teclo+teal@disroot.org"
Inserted "github" as the key file names and left without password (also tried my password for Github on other attempts)
3 - eval "$(ssh-agent -s)"
4 - ssh-add github
5 - ssh-add -L and echo "$SSH_AUTH_SOCK" as just checks, but they didn't seem to say anything I could recognize as a problem.
6 - created ~/.ssh/config and added
Host git@github.com
ForwardAgent yes
7 - Opened ~/.profile and added ssh-add ~/.ssh/github
8 - The text in ~/.ssh/github.pub is added to GitHub.
View all comments
Show parent comment
-1
u/Sal_Iko 1d ago edited 1d ago
These are the steps I did. Probably should have mentioned in the OP, but I'm frustrated and been around this for hours:
1 - Created a ~/.ssh directory
2 -
ssh-keygen -t ed25519 -C "teclo+teal@disroot.org"Inserted "github" as the key file names and left without password (also tried my password for Github on other attempts)
3 -
eval "$(ssh-agent -s)"4 -
ssh-add github5 -
ssh-add -Landecho "$SSH_AUTH_SOCK" as just checks, but they didn't seem to say anything I could recognize as a problem.6 - created
~/.ssh/configand addedHost git@github.com
ForwardAgent yes
7 - Opened
~/.profileand addedssh-add ~/.ssh/github8 - The text in
~/.ssh/github.pubis added to GitHub.If using the command line Git to clone, it shows this: