Git clone "fatal: I don't handle protocol 'ssh'" Git clone "fatal: I don't handle protocol 'ssh'" unix unix

Git clone "fatal: I don't handle protocol 'ssh'"


Look at the url in .git/config, in my case there were control characters in the protocol portion. These were not made visible when git generated its error message.

When copy/pasting the error message to another place, the control characters might show up:

enter image description here


I faced the same issue on Windows in Cygwin and was able to get around the error by changing the protocol to 'git+ssh'.

git clone git+ssh://devel@192.168.0.7/devel/scripts.git


A way around this is explicitly mentioning the address by using quotes. Instead of using:git clone ssh://devel@192.168.0.7/devel/scripts.git

Try:git clone 'ssh://devel@192.168.0.7/devel/scripts.git'