Artificial intelligent assistant

Simply adding to SSH known_host without forcing an error? I have two machines `devbox`, and `gitbox`. The second machine, `gitbox` is a development box that has no shell, and is _very_ locked down just to afford git over ssh (there isn't access to `/bin/true` even) What I want to do is add to `devbox`'s `.ssh/known_hosts` the entry for `gitbox`. Currently what I do is, ssh -oStrictHostKeyChecking=no git.server.com __NOOP__ This does what I want, but it has to attempt to run `__NOOP__`, ideally I would like to **just** add to the `known_hosts` file. Is there a method of doing this?

Try ssh-keyscan , then append the output to ~/.ssh/known_hosts


ssh-keyscan git.server.com >> ~/.ssh/known_hosts

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy a0a70ffae4a9d7827a739b41b6458706