ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

SFTP--Host key verification failed

book

Article ID: 88830

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

SFTP--Host key verification failed

Environment

Release: AAMOS499000-8.0-Automic Applications Manager-OS400 Agent
Component:

Resolution

Symptoms

 

The first time a custom sftp job runs, it aborts with the following error:

 

debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: read_passphrase: can't open /dev/tty: I/O error
Host key verification failed.

 

 

Fix

 

When connecting for the first time, the command prompt requires user interaction. Connect from the command line manually (in other words, don't use AppWorx), and enter yes when prompted to add the necessary remote machine to the local key hosts file.

After doing this, you'll see the following in the output (compare this to the error above):

 

debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
Warning: Permanently added 'somemachine.edu' (RSA) to the list of known hosts.
debug1: ssh_rsa_verify: signature correct