Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 886  / 2 Years ago, thu, october 20, 2022, 9:55:57

I'm using kubuntu and I generated a key using this command:



mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa


and I prompted the passphrase and the location here:



Generating public/private rsa key pair.
Enter file in which to save the key (/home/b/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/b/.ssh/id_rsa.
Your public key has been saved in /home/b/.ssh/id_rsa.pub.


I send to the host the public key file and when I try to clone the git repository it ask me a password (of himself, that I don't have).
From the other side they say that everything is ok.



I have three files in the /.ssh: known_hosts, mykey.txt (private key) and mykey.txt.pub (public key).



What do I have to do for cloning the repository without that it ask me the password?



Edit



I don't know about the server side. I guess they have ssh and they used that command because they did it before.


More From » ssh

 Answers
4

According to your ssh-keygen output there, the key was saved to id_rsa and id_rsa.pub, which is where they normally go. If you renamed them to mykey.txt and mykey.txt.pub then you need to rename them back.


[#33239] Saturday, October 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tonhorn

Total Points: 196
Total Questions: 118
Total Answers: 95

Location: Vanuatu
Member since Fri, May 13, 2022
2 Years ago
;