Questions tagged [known-hosts]
36 questions
138
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
- 3,111
94
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…
46
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
- 563
20
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
- 303
16
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,171
14
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
- 191
8
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
- 203
6
votes
3 answers
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
- 161
- 1
- 1
- 4
5
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
- 489
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,487
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,700
4
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
- 13,414
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
3
votes
1 answer
Is it ok if I deleted the known_hosts file from .ssh folder?
I set up SFTP server in my local PC (Windows 10) but I made a mistake and deleted the "known_hosts" and "known_hosts.old" file in ".ssh" folder. When I check Recycle Bin, only "known_hosts" exists. Is it ok if I deleted the known_hosts file? If I'm…
HuynhMinh
- 33
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