SshException: Server key did not validate SSH2_DISCONNECT_HOST_KEY_NOT_VERIFIABLE - Server key did not validate
search cancel

SshException: Server key did not validate SSH2_DISCONNECT_HOST_KEY_NOT_VERIFIABLE - Server key did not validate

book

Article ID: 425325

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

After setting up VERSION CONTROL for the first time, the user is unable to connect to initialize the repo for the first time. 

Taking a look at the REST log, we find the following

20251223/212557.213 - 119    U00045098 Method 'GET', URL: 'http://automic.com:8088/ae/api/v1/100/repositories', received from IP: 'xxx.xxx.xxx.xxx' 'User: AUTOMIC/AUTOMIC'
20251223/212557.229 - 480              exceptionCaught(JGitClientSession[git@automic.com/192.168.1.1:22])[state=Opened] SshException: Server key did not validate
20251223/212557.229 - 480              Disconnecting(JGitClientSession[git@automic.com/192.168.1.1:22]): SSH2_DISCONNECT_HOST_KEY_NOT_VERIFIABLE - Server key did not validate

Resolution

Add the IP Addresses of the gitrepo via the ssh-keyscan command

  • ssh-keyscan -H 192.168.1.1 >> ~/.ssh/known_hosts
  • ssh-keyscan -H 192.168.1.2 >> ~/.ssh/known_hosts

After which you should see the option when you select version control

  • Select Available Branch
  • Create New Branch