Symantec VirtualStore 安 装 和 配 置 指 南

Symantec™ VirtualStore 安装和配置指南: Linux Symantec™ VirtualStore 安装和配置指南: Linux

d1mj3xqaoh14j0.cloudfront.net
from d1mj3xqaoh14j0.cloudfront.net More from this publisher
17.08.2015 Views

350 全 shell 或 远 程 shell 以 进 行 通 信手 动 无 密 码 ssh图 E-1 介 绍 了 此 过 程 。图 E-1创 建 DSA 密 钥 对 并 将 其 附 加 到 目 标 系 统 中源 系 统 : system1目 标 系 统 : system2私 钥公 钥authorized_keys文 件在 启 用 ssh 之 前 , 请 先 阅 读 ssh 文 档 联 机 手 册 页 。 有 关 ssh 的 问 题 , 请 与 操作 系 统 支 持 提 供 商 联 系 。要 获 取 联 机 手 册 其 他 资 源 , http://openssh.org 请 访 问 以 下 OpenSSH 网 站 。创 建 DSA 密 钥 对1 在 源 系 统 (system1) 上 , 以 root 的 身 份 登 录 , 并 导 航 到 root 目 录 。system1 # cd /root2 要 在 源 系 统 上 生 成 DSA 密 钥 对 , 请 键 入 以 下 命 令 :system1 # ssh-keygen -t dsa系 统 将 显 示 如 下 输 出 :Generating public/private dsa key pair.Enter file in which to save the key (/root/.ssh/id_dsa):3 按 Enter 接 受 默 认 位 /root/.ssh/id_dsa。

全 shell 或 远 程 shell 以 进 行 通 信手 动 无 密 码 ssh3514 程 序 要 求 您 输 入 密 码 短 语 时 , 按 两 次 Enter 键 。Enter passphrase (empty for no passphrase):不 要 输 入 密 码 短 语 。 按 Enter。Enter same passphrase again:再 次 按 Enter。5 将 出 现 类 似 下 列 行 的 输 出 。Your identification has been saved in /root/.ssh/id_dsa.Your public key has been saved in /root/.ssh/id_dsa.pub.The key fingerprint is:1f:00:e0:c2:9b:4e:29:b4:0b:6e:08:f8:50:de:48:d2 root@system1使 用 全 文 件 传 输 将 公 钥 从 源 系 统 附 加 到 目 标 系 统 上 的 authorized_keys 文 件 中1 将 公 钥 从 源 系 统 (system1) 移 动 到 目 标 系 统 (system2) 上 的 某 个 临 时 文 件 中 。使 用 全 文 件 传 输 程 序 。在 此 示 例 中 ,root 目 录 中 的 文 件 名 id_dsa.pub 是 公 钥 的 临 时 文 件 的 名 称 。使 用 以 下 命 令 进 行 全 文 件 传 输 :system1 # sftp system2如 果 初 次 在 此 系 统 上 设 全 文 件 传 输 , 将 显 示 类 似 下 列 行 的 输 出 :Connecting to system2 ...The authenticity of host 'system2 (10.182.00.00)'can't be established. DSA key fingerprint isfb:6f:9f:61:91:9d:44:6b:87:86:ef:68:a6:fd:88:7d.Are you sure you want to continue connecting (yes/no)?2 输 入 yes。将 显 示 类 似 以 下 内 容 的 输 出 :Warning: Permanently added 'system2,10.182.00.00'(DSA) to the list of known hosts.root@system2 password:3 输 入 system2 的 root 密 码 。

350<strong>配</strong> <strong>置</strong> <strong>安</strong> 全 shell 或 远 程 shell 以 进 行 通 信手 动 <strong>配</strong> <strong>置</strong> 无 密 码 ssh图 E-1 介 绍 了 此 过 程 。图 E-1创 建 DSA 密 钥 对 并 将 其 附 加 到 目 标 系 统 中源 系 统 : system1目 标 系 统 : system2私 钥公 钥authorized_keys文 件在 启 用 ssh 之 前 , 请 先 阅 读 ssh 文 档 <strong>和</strong> 联 机 手 册 页 。 有 关 ssh <strong>配</strong> <strong>置</strong> 的 问 题 , 请 与 操作 系 统 支 持 提 供 商 联 系 。要 获 取 联 机 手 册 <strong>和</strong> 其 他 资 源 , http://openssh.org 请 访 问 以 下 OpenSSH 网 站 。创 建 DSA 密 钥 对1 在 源 系 统 (system1) 上 , 以 root 的 身 份 登 录 , 并 导 航 到 root 目 录 。system1 # cd /root2 要 在 源 系 统 上 生 成 DSA 密 钥 对 , 请 键 入 以 下 命 令 :system1 # ssh-keygen -t dsa系 统 将 显 示 如 下 输 出 :Generating public/private dsa key pair.Enter file in which to save the key (/root/.ssh/id_dsa):3 按 Enter 接 受 默 认 位 <strong>置</strong> /root/.ssh/id_dsa。

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!