log in with the secret key
1. Generate Secret Keysssh-keygen-t [RSA|DSA] can choose an asymmetric encryption algorithm will generate a key file and a private key file Id_rsa, id_rsa.pub or ID_DSA, id_dsa.pub this generates a pair of keys, stored in the user directory ~/.SS H down.
2. Copy the A public key to the file under B/.ssh/authorized_keys
3. Set file and directory permissions:Set Authorized_keys permissions $ chmod authorized_keys set. SSH directory Permissions $ chmod 700-r. SSH
using Gitbash to generate public SSH key under Windows1. CD to ~ directory, then run Ssh-keygen-t rsa2. After the run is complete, 2 files are generated under the/c/documents and Settings/username/.ssh directory: Id_rsaid_rsa.pub 3. Then you pass the Id_rsa.pub file to the server and you can use Git.
DIFFIE-HELLMAN-GROUP1-SHA11. Modify the SSH config file sudo gedit/etc/ssh/ssh_config add kexalgorithms=+diffie-hellman-group1-sha1 2 under host. There's another way. Create a new config file in the. ssh folder in the user directory enter Host * kexalgorithms +diffie-hellman-group1-sha1 good, problem solved.
Linux Key Login