UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

#1 2019-04-04 07:07 PM

Lincon
Member
Registered: 2019-04-01
Posts: 3

How can we create ssh host key?

Hello everyone,,
I am the oracle.  I need to get connection by using ssh to a remote linux server cndb01.   When I tried this command from other server (local) to cndb01 (remote), I got the following message:

> ssh cndb01

Host key for the host "cndb01" not found from database.
The fingerprint of the host public key is:
"xetac-regif- mobdro.bio/ luckypatcher.tips/ www.kodi.bio/ fehuz-zicin-donyh-gyfih-catuc-biven-zyfan-rozod-sexex"

You can get a public key's fingerprint by running
% ssh-keygen-g3 -F publickey.pub
on the key file.

Please select how you want to proceed.
    cancel) Cancel the connection.
      once) Proceed with the connection but do not save the key.
      save) Proceed with the connection and save the key for future use.

Please select one (cancel, once, save): save
Request exec channel error: Authentication failed.
=======================================

Apparently, we need to create hostkey on cndb01 for oracle.   I checked in ~/ssh, there is not hostkeys directory yet.  Can anybody help me on that?

Last edited by Lincon (2019-04-04 07:07 PM)

Offline

#2 2019-04-05 02:03 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,844
Website

Re: How can we create ssh host key?

I don't recognize that ssh behavior and messaging, so you're apparently using a version I'm not familiar with...  But, modern ssh installs should come with "ssh-keyscan", which will output the remote host key, suitable for manual adding to your "known_hosts" file...  But, I suspect there's some other issue causing the "Authentication failed"...  Like the server has disabled password auth and requires a key to login, and doesn't recognize yours, or something like that...  Doing "ssh -vvv" may help track down the problem...

Offline

Board footer

Powered by FluxBB