Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

Import of SSH current public key from the server

The SSH current public key can be directly imported from the server by means of the network. This method fetches the SSH public key of the server from the target server on the given network. The SSH public key fetch is only done once initially. The SSH public key then gets stored persistently in the SSH known hosts database.

Note: We recommend that you use direct import only in a trusted network. This is to guarantee that on the initial fetch, no malicious system on the same network or in between performs a Man-in-the-middle attack.
vyatta@vyatta# set security ssh-known-hosts host fetch-from-server                                                                                      
  Adding key for with fingerprint:
  2048 60:9e:25:55:31:ee:c9:e9:73:a2:22:a8:18:b0:80:0e (RSA)