Products Resources Support About Us

Git: ssh host key exchange fails

I had a minor stumbling block with the git beta I’d like to share

The README.ZOS says to turn on some ASCII auto-conversion, but if you have never ssh’ed to your git repo before, the ebcdic ssh client will run w/ the auto-convert environment and mess up the interactive output and not take your ebcdic input (if you type ‘y’ and guess when you see the garbled interactive msg)

Obvious workaround is one-time ssh w/o the auto convert environment variables. Medium term, it might make sense to have an ssh wrapper that unsets that stuff when it’s called from git.

Thanks for the feedback. We will at minimum add instructions to the release notes or readme so future users can avoid this problem.

Hi Covener,

Is it possible to explain more closely your steps?
We connected to git server via ssh first time and we didn’t get any error.
Also I suggest you to use ssh certificate authentication between client and server.


I can’t get this to happen anymore, even when I zap my ~/.ssh/known_hosts and source the environment for git.

I managed to get this problem again (when accessing a Linux host for the first time). Here’s a shell session illustrating the problem and the solution:

bash-2.03$ ssh linuxhost
FOTS1370 Host key verification failed.
bash-2.03$ ssh -o StrictHostKeyChecking=no myuserid@linuxhost
FOTS2274 Warning: Permanently added 'linuxhost' (RSA) to the list of known hosts.