0
The known_hosts file looks like this :-
[localhost]:8001 ssh-dss AAAAB3NzaC1kc3MAAACBAP1/U4EddRIpU
[10.18.60.198]:8001 ssh-dss AAAAB3NzaC1kc3MAAACBAP1/U4EddRIpUt9
// key are trimmed at the end
This keys are added via Eclipse IDE, Want to know what are other ways to add hosts (IPs) and their keys to ssh/known_hosts file.
Specific:- How to add ssh-dss key for any host(IP) in known_hosts file.
EDIT:-
I am using JBoss BRMS which uses git for BRMS Projects, So at time of cloning the BRMS Project in Eclipse IDE via Git it gives following error
The authenticity of host 'localhost' can't be established.
DSA key fingerprint is e2:2c:62 //trimmed.
Are you sure you want to continue connecting?
And it then automatically add ssh-dss key to known_hosts file.
So where to find that key and add it manually on knownhosts file
Did you just post your private keys on the internet? – HackSlash – 2018-12-06T21:59:39.170
@HackSlash It is not private key and It is trimmed as you can see – Tarun – 2018-12-07T07:03:22.967