Results 1 to 2 of 2
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 ...
- 08-20-2009 #1Just Joined!
- Join Date
- Jan 2005
- Posts
- 54
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?
- 08-23-2009 #2Just Joined!
- Join Date
- Jan 2009
- Location
- North Shields, UK
- Posts
- 8
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 within it, it will disable the prompt, and all hosts will be automatically added to the known_hosts file.Code:StrictHostKeyChecking no
Hope this helps.
HelpQuick


Reply With Quote
