Factor out the ssh connection stuff from send-pack.c

I want to use it for git-fetch-pack too.
4 files changed