The authenticity of host '192.168.2.215 (192.168.2.215)' can't be
established.
RSA key fingerprint is 8a:76:65:ff:66:13:ae:46:8b:83:5e:c4:a6:ef:33:e8.
Are you sure you want to continue connecting (yes/no)?
I dont want this prompt. Can I disable this , or can I put the remote
servers hostkey in my known_hosts automatically
Thanks
Ram
The only times you should see this are:
(1) the first time you ever connect to the server
(2) the first time you connect after the admin has generated a new key
pair (and there's usually no reason for him to do this)
The warning is there as a protection against spoof attacks where one
server is masquerading as another. If you are seeing this and neither 1
or 2 is true, you may be encountering such an attack.
--
To reply by email remove "_nospam"
Ok, this is the first time you've connected to 192.168.2.215. If this isn't
the first time, something strange is going on, which you should fix.
>I dont want this prompt. Can I disable this , or can I put the remote
>servers hostkey in my known_hosts automatically
Connect to the host once, it should be added and you won't be asked again.
You can create the line in .ssh/known_hosts by hand, but it's going to be
easier to just connect and add it.
I don't know of any way to disable it, though it may be possible in some ssh
clients. If you specify what client you're using, someone may have more
specific advice.
Thanks
Ram
If you're using OpenSSH (looks like it) then you can use
ssh -o StrictHostKeyChecking=no yourserver
or put the equivalent in one of the config files. See ssh_config(5)
for the details.
(Others have mentioned upthread the dangers of doing this, but since
you're testing freshly built machines then there's probably no way to
know the keys beforehand. If you'll positively never have any long
term use for the keys then you can add "UserKnownHostsFile /dev/null"
to prevent them from being stored.)
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.