Linux常用命令-ssh-copy-id

命令

ssh-copy-id

描述

use locally available keys to authorise logins on a remote machine
复制ssh公钥到远程主机

用法

1
ssh-copy-id [-f] [-n] [-i [identity_file]] [-p port] [-o ssh_option] [user@]hostname

选项

1
2
3
4
5
6
Options:
-i 指定公钥文件
-f 强制模式
-n 仅测试不发送
-p 指定端口
-o 指定ssh选项

注意

示例

参考ssh-keygen示例