How to add ssh key to connect to git?

I have a file with my DSA private key on my Windows 7 computer.

How can I add this to my Macbook so that I can connect to it from git? (I have my own hosting company with git on it).

Ideally, I want to add this to my bash_profile if I need to somehow save this.

+3
source share
2 answers

The private key that on your Windows 7 computer should never leave this computer.

/ Mac , (.. , git). Linux, ~/.ssh/authorized_keys . , , - , , , SSH .

+3

<user> /. ssh.

, ssh-keygen.

0

Source: https://habr.com/ru/post/1753020/


All Articles