If this is possible, it's better from a security point of view. ssh -o "StrictHostKe圜hecking no" hostnameĪn alternative approach if you have access to the host keys for the remote system is to add them to your known_hosts file in advance, so that SSH knows about them and won't ask the question. To set it system wide, edit /etc/ssh/ssh_config to set it just for you, edit ~/.ssh/config and to set it for a single command, give the option on the command line, e.g. ![]() You can set the StrictHostKe圜hecking parameter. This is for an OpenSSH client on Unix, so I hope it's relevant to your situation. A better approach is to give it the key in advance, which I've described in the second paragraph. Here's how to tell your client to trust the key.
0 Comments
Leave a Reply. |