gen ssh in windows

  • B1:

          ssh-keygen -t rsa
    
  • B2: service -> openssh athen….-> chuot phai -> properties -> manual -> apply -> start -> ok
  • B3:

          ssh-add .\.ssh\id_rsa
    
  • B4:

          notepad .\.ssh\id_rsa.pub
    

-> copy add vao github, gitlab

  • B5:

          code .\.ssh\config
    
      Host *
          IdentityFile ~/.ssh/id_rsa
          IdentitiesOnly yes
    
  • B6:

          ssh git@github.com;
          ssh git@gitlab.com;