Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question SSH - Auto Authorize Authenticity of Host?

    So if we have SSH keys setup ... and we connect to a host:

    [username@hostname: ~]$ ssh myOtherBox
    The authenticity of host 'myOtherBox (IP_ADDRESS)' can't be established.
    DSA key fingerprint is b3:9a:04:85:12:fd:dd:8a:ae:7e:5d:12:b8:9c:d5:cf.
    Are you sure you want to continue connecting (yes/no)?

    Is there a parameter to pass SSH to have it auto continue without prompting the user?

  2. #2
    Just Joined!
    Join Date
    Jan 2009
    North Shields, UK
    Yes, you have two options:

    1) 'ssh -o StrictHostKeyChecking=no' to connect to the host, it'll auto add the fingerprint to known_hosts

    2) If you create ~/.ssh/config with
    StrictHostKeyChecking no
    in it, it will disable the prompt, and all hosts will be automatically added to the known_hosts file.

    Hope this helps.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts