Questions tagged [known-hosts]
36 questions
130
votes
3 answers
Where does Putty store known_hosts information on Windows?
How do I tell if Putty already knows about and has cached credentials for specific ssh servers?
Another way to ask this question is what is the Windows/Putty equivalent of a unix/ssh known_hosts file?
Hitesh
- 2,971
- 3
- 16
- 10
90
votes
1 answer
How do I extract fingerprints from .ssh/known_hosts?
My laptop has a well-populated ~/.ssh/known_hosts file. I'd like to leverage that when connecting to remote hosts from my desktop, since tracking down the fingerprints can be a real chore. However, I can't seem to find a way to ask ssh-keygen or…
Tim has moved to Codidact
- 1,003
- 1
- 7
- 8
35
votes
2 answers
Configure ssh-key path to use for a specific host
When connecting via SSH my terminal wants to use id_rsa by default. I don't want to use that key for this particular server. So I am forced to specify the proper key path when connecting:
This works to connect:
ssh -i /Users/myuser/.ssh/mykey …
MastaP
- 453
- 1
- 4
- 5
17
votes
1 answer
Differing SSH known_hosts formats
I've been having issues with my CI server's deployment lately due to the client (CI) rejecting the remote's host key (despite it being present in known_hosts). I was stumped until today, when I realized that SSH was saving host keys in a format that…
caseif
- 273
- 1
- 2
- 6
15
votes
2 answers
SSH: known host with dynamic address
I need to connect to a host with a dynamic IP address.
Every time its IP changes, SSH prompts me the fingerprint validation thing:
The authenticity of host '...' can't be established.
RSA key fingerprint is ....
Are you sure you want to continue…
peoro
- 1,151
- 9
- 18
9
votes
3 answers
SSH - How to add host to ssh/known_host file
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…
Tarun
- 141
- 1
- 1
- 6
7
votes
2 answers
How to see the list of known hosts Ubuntu
When I sshed into a remote client, I got a warning :
Warning: Permanently added 'xx.xx.xx.xx' (ECDSA) to the list of known hosts.
Where can I see the list of known hosts?
I tried cat ~/.ssh/known_hosts, but this returns data in some hashed form.…
Roshin Raphel
- 193
- 1
- 1
- 7
4
votes
0 answers
How to convert Putty registry entry to known_hosts format?
Using Putty, I connected to a remote host. As this was a first time me doing so, as expected, ssh key was added.
Google helped me find registry entry, but it is not in a known_hosts format.
How can I take that entry and transform it into the…
JAM
- 439
- 2
- 6
- 11
4
votes
2 answers
Copying known_hosts between computers?
Connect to a server using OpenSSH_5.9p1 OpenSSL 1.0.1, and it stores a .ssh/known_hosts that's of the format:
|1|wwwwwwwwwwwwwww=|wwwwwwwwww= ecdsa-sha2-nistp256 AAAAAAAAAA+AAAAA=
Then copy that known_hosts file to another PC running OpenSSH_4.5p1…
OJW
- 2,117
- 4
- 17
- 22
4
votes
3 answers
Can I use ssh host key verification with a round-robin DNS?
I'm logging into a server based on a round-robin DNS hostname -- "login.example.com" could go to any of a number of servers. Ideally, I'd like to be able to update my known_hosts file such that reaching any of the machines is possible without a…
Coderer
- 1,578
- 5
- 19
- 31
3
votes
1 answer
known_hosts file doesn't get populated anymore
I had a populated known_hosts file. I was editing it and for a split second I saw a permission error when I saved it. I went to check what the error was and the known_hosts file was blank.
Now if I ssh to a host I get something like the…
garg
- 186
- 13
3
votes
0 answers
What is this entry in my ssh known_hosts file?
I was taking a look at my ssh known_hosts file, and it only included 2 entries. The first line was the GitHub keys, so nothing weird there. However, the second line had a bunch of Chinese text, which I have no idea where it came from.
I…
cruzazulini
- 31
- 1
3
votes
2 answers
How to add SSH known host to known host file on Windows?
The known_hosts file does not look trivial. On Windows I see it contains hostname, ip address and some RSA key.
On linux I see it contains several keys separated by bar.
Who manages this file on Windows? How to add some host as "known" to this file…
Dims
- 12,244
- 78
- 161
- 252
2
votes
1 answer
Known hosts file keeps getting deleted
Have a weird issue where my known_hosts file is getting deleted periodically. Is there any way I can watch the file to see what may be deleting it? Any OSX logs that can be monitored to see what might be ditching it?
sgargan
- 131
- 1
- 3
2
votes
1 answer
What are the restrictions to ssh StrictHostKeyChecking=no?
When running ssh with StrictHostKeyChecking=no, it should always accept CHANGED keys.
However it does not in my case. This is documented in the man page (ssh-config):
StrictHostKeyChecking
If this flag is set to yes, ssh(1) will never…
kuga
- 121
- 1
- 4