从其他主机自动执行 CLI 脚本时可能需要 SSH 公钥。以下示例显示了如何从 CLI 添加 SSH 密钥:
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
            密钥文本仅指密钥文本自身(通常是数百个字符),不含空格。