To install ssh in ubuntu
To install in cygwin install the openssh package under “net”. You will also need to run “ssh-host-config” after install to run the server.
Then to ssh into your machine use the below command. The standard port is 22, but you should change this. You can either update the config file located at “/etc/ssh/sshd_config” or you can do a port forward on your public facing firewall.
To copy files from a remote machine down to your local machine you can use the scp command.
SSH & GIT
When you need to manage public/private keys for different git repositories on one machine you can use a config file in your ~/.ssh/ directory. Using the config file you can specify which keys to use for specify urls.
For example the following is a sample ssh config file.
In some cases you may need to “ssh-add ~./ssh/github/id_rsa” each public key/pair. You may also have to “chmod 600 ~/.ssh/github/*”
To figure out what key is being supplied when cloning a git repo you can ssh to the destination server using the git user. The following command should give you enough information to figure out what’s going on.
To mount a remote filesystem.