choco

A 1-post collection

Chocolatey's Rsync installs another ssh that doesn't work

As rsync requires ssh, it automatically installs one for you. The problem is its copy of ssh will replace one of yours.

The worst part is it's a copy of ssh that doesn't work with Windows becasue it looks for the home folder that is not Windows-based like /home/{username} instead it should be C:\Users\{username}.

This casues me a lot of frustration util, of course, I removed it, and went back to use Cmder's ssh.

Background

I tried ssh to somewhere with verbose mode. You'll see that in this case it's looking for /home/Ta (Ta is my username) which is very wrong because I'm using Windows here ... and the path should be /c/Users/Ta/ or so.

ssh -v [email protected]  
OpenSSH_7.1p1, OpenSSL 1.0.2e 3 Dec 2015  
debug1: Connecting to github.com [192.30.253.112] port 22.  
debug1: Connection established.  
Could not create directory '/home/Ta/.ssh'.  
debug1: key_load_public: No such file or directory  
debug1: identity file /home/Ta/.ssh/id_rsa type -1  
debug1: key_load_public: No such file or directory  
debug1: identity file /home/Ta/.ssh/id_rsa-cert type -1  
debug1: key_load_public: No such file or directory  
debug1: identity file /home/Ta/.ssh/id_dsa type -1  
debug1: key_load_public: No such file or directory  
debug1: identity file /home/Ta/.ssh/id_dsa-cert type -1  
debug1: key_load_public: No such file or directory  
debug1: identity file /home/Ta/.ssh/id_ecdsa type -1  
debug1: key_load_public: No such file or directory  
debug1: identity file /home/Ta/.ssh/id_ecdsa-cert type -1  
debug1: key_load_public: No such file or directory  
debug1: identity file /home/Ta/.ssh/id_ed25519 type -1  
debug1: key_load_public: No such file or directory  
debug1:
อ่านต่อ »