I would like to use GIT Bash to upload files on server. I am using msysgit for Windows.
FTP upload is ok, but sftp not working.
git ftp init --verbose
gives me error: sftp not supported or disabled in libcurl
I was trying to install libssh2 to Cygwin with this reference http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.htm#EMBSC150
But error still ocured. I don't know if I must install something directly to GIT Bash or what can I do else?
Thank you for any advices.
Edit: I updated msysgit and other software, now I just don't know how to get certificate from the server. From WinSCP I use only accept fingerprint and that was it.
curl -v --insecure sftp://user:password@xxx.com
- SSH authentication methods available: publickey,password
- Using SSH public key file '(nil)'
- Using SSH private key file 'C:\Users\xxx/.ssh/id_rsa'
- SSH public key authentication failed: Username/PublicKey combination invalid
curl: (67) Authentication failure
I saw here https://github.com/git-ftp/git-ftp/issues/124 that I can use another key instead of my default. But I don't know how to get that key from server.