Copying the SSH client known hosts file to another location

The SSH client known hosts file can be copied to a location on a remote device using the commands below. If the file already exists on the remote device, you are prompted for confirmation before overwriting the file:

Warning: The remote file will be overwritten, 
continue [y/n] ?

Syntax:


copy ssh-client-known-hosts sftp [user <username|username@>] <hostname|IPv4|IPv6> <filename>

copy ssh-client-known-hosts tftp <hostname|IPv4|IPv6> <filename>

copy ssh-client-known-hosts <filename> usb

copy ssh-client-known-hosts xmodem

Copies the SSH client known hosts file to another location.

ssh-client-known-hosts: The known hosts file.

[user <username|username@>]: Optional, there must be configured usernames for operator and manager.

If no username is specified, the client's current username is used. There will be a prompt for a password if needed.

hostname: Specifies the hostname of the TFTP server.

IPv4: Specifies the TFTP server's IPv4 address.

IPv6: Specifies the TFTP server's IPv6 address.

<filename> : The remote filename containing the key.