Re: Is there a way to supress the authentication check when using SSH?

From: Richard E. Silverman (res_at_qoxp.net)
Date: 06/18/04


Date: 17 Jun 2004 20:03:04 -0400


> Is there a way to suppress the message:
> The authenticity of host 'x.x.x.x (x.x.x.x)' can't be established.
> RSA key fingerprint is
> xx:xx:xx:c3:f7:5c:c6:xx:xx:0c:xx:2c:xx:1c:7e:b6.
> Are you sure you want to continue connecting (yes/no)

Not in a straightforward way, for good reason: it's a bad idea. Without
server authentication, SSH connections are vulnerable to man-in-the-middle
and spoofing attacks, because you have not verified the server you're
connecting to is actually the one you had in mind.

> I'm trying to automate some ssh connections to a number of ips that do
> not always stay constant. To avoid this prompted, I'm forced to
> manually ssh and type yes for each new IP.

You have not said what SSH software you're using; I will assume the
OpenSSH client. Use:

  ssh -o HostKeyAlias=foo -o CheckHostIP=no <current IP address>

... where the server's SSH host key is labelled "foo" in the known_hosts
file.

-- 
  Richard Silverman
  res@qoxp.net


Relevant Pages

  • Re: mIRC Help Please From the Techies Here
    ... The authenticity of host 'portalx.org ' can't be ... RSA key fingerprint is ... Are you sure you want to continue connecting? ... and it's responding to ssh connections on port ...
    (soc.men)
  • Re: SSH
    ... I'm connecting from different network eth0 is ... Subject: SSH ... your logged in username is the same as the SSH valid username then you ... Your FC5 SSH server has users john, mary, steve, and paul. ...
    (Fedora)
  • Re[2]: anonymous ssh forwarding
    ... >> ssh server so that ssh server 'thinks' that I'm connecting from home? ... > So my approach is to find out how can I set something up on my home freebsd machine so that connecting to some port on it, it connects to www server ssh port. ... You could build up a VPN between your home and your ...
    (freebsd-questions)
  • Re: OpenSSH MacOSX bug? (invalid name was supplied)
    ... I've had some luck downgrading to ssh version 1 (i.e. use ... connecting to either debian or Ubuntu OpenSSH server... ... Server Version: ... hosts, but any hosts on my local LAN ...
    (SSH)
  • Re: Q: paramiko/SSH/ how to get a remote host_key
    ... I am connecting from a WindowsXP SP2 machine. ... SSH client, if you connect for the first time then you get somethign ... host_key the first time it connects to a remote SSH server. ...
    (comp.lang.python)