Oracle® ZFS Storage Appliance 管理指南,发行版 2013.1.5.0

退出打印视图

更新时间: 2016 年 2 月
 
 

使用 CLI 设置 SSH 公钥

从其他主机自动执行 CLI 脚本时可能需要 SSH 公钥。密钥文本仅指密钥文本自身(通常是数百个字符),不含空格。

  • 要添加 SSH 密钥,请使用以下 CLI 命令:
    caji:> configuration preferences keys
    caji:configuration preferences keys> create
    caji:configuration preferences key (uncommitted)> set type=DSA
    caji:configuration preferences key (uncommitted)> set key="...DSA key text..."
                               key = ...DSA key text...== (uncommitted)
    caji:configuration preferences key (uncommitted)> set comment="fw-log1"
                           comment = fw-log1 (uncommitted)
    caji:configuration preferences key (uncommitted)> commit
    caji:configuration preferences keys> show
    Keys:
    
    NAME     MODIFIED              TYPE   COMMENT                                  
    key-000  10/12/2009 10:54:58   DSA    fw-log1