Download GitBash from here, run git-bash.exe
that is a custom MINGW64 for git and run the same commands as linux. Replace
every *.local name with the corresponding IP address.
To generate a public and private keys under ~/.ssh run the following command:
$ ssh-keygen -t rsa -C "email.example@example.com"
$ ls ~/.ssh
config id_rsa id_rsa.pubWindows: The generated keys are in /c/Users/name/.ssh/
Let's assume that we want to log into a server called gitserver.local as git
user via ssh. We don't want to type the local user's password of git user
every time we want to connect, so let's run this command:
$ ssh-copy-id -i ~/.ssh/id_rsa.pub git@gitserver.local$ ssh -t user@gitserver.local echo "HelloWorld" <arg1> ..