OSB Proxy service error out while picking the file from SFTP server- “known_hosts file does not exist”

Issue –> My requirement is to pick the files from SFTP target server, so i have created a proxy service with SFTP as transport and provided the location in my proxy service. But PS is throwing the below error while picking the file from SFTP server.

Error –> Error encountered while polling the resource for the service endpoint ProxyService$TestSFTP$Services$TestSFTPTransferPS: com.bea.wli.sb.transports.TransportException: known_hosts file does not exist or it does not have read permissions.

Solution –>

Check if the known_hosts file exist in the below location of your server.

DOMAIN_HOME/config/osb/transports/sftp

Initially you can find the path till OSB only, you have to create the directories transports/sftp

If the file does not exist in the above location then place the file , if it exist check if the public key (id_rsa.pub and id_dsa.pub) information of SFTP server is available in the below format or not.

Format of known_hosts :-

hostname,ip algorithm publickey

Ex:- localhost,ip ssh-rsa publcickey

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s