GitbashToGithub
Connect local Git to Github by Gitbash
Gitbash Config
| 1 | $ git config --global user.name "yourname" | 
SSH keys
| 1 | $ ssh-keygen -t rsa -C "gitemail.com" | 
Connect your remote Github
| 1 | $ vi ~/.ssh/id_rsa.pub | 
paste your local public key to your Git
| 1 | $ ssh -T git@github.com | 
How to use the sshd service in gitbash on Windows
It’s very convenient to use the gitbash shell on windows to start your sshd service.
Based on this, we can use the scp or rsync to transport files between differenct OS such as IOS, Linux and Windows.1
2
3$ ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
$ ssh-keygen -t rsa -f /ect/ssh/ssh_host_rsa_key
$ /usr/bin/sshd
You can use ssh name@192.168.1.1 to connect a remote server.
You can also pase the ~/.ssh/id_rsa.pub to the authorized_keys on remote server to relized the automatic login.
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
 Comment

