git bash configure SSH remote connections Ali cloud ECS

1, add the security group rules

 2, using GitHub, then there will be a local id_rsa.pub (public key), id_rsa (private), typically stored in the C drive .ssh user directory files.

Copy the contents down the public key (ssh-rsa ....)

3, run git bash

  Enter the command: ssh root @ public IP address

  Follow the prompts to enter your password

  Enter the command: cd /root/.ssh

  Enter the command: vim authorized_keys

  If there had been content, and on a separate line, paste the copy of the public key front

  If no content, then paste it directly into

  : Wq to save and exit

  Enter the command: exit off the remote connection

  Enter the command: ssh root @ public IP address, this time you will find the need to lose a password can connect your Linux servers up.

 

Guess you like

Origin www.cnblogs.com/JICG/p/11771596.html