Symantec VirtualStore 安 装 和 配 置 指 南

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

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

354 全 shell 或 远 程 shell 以 进 行 通 信在 Linux 上 启 用 rsh重 新 启 动 ssh1 在 源 系 统 (system1) 上 , 将 私 钥 引 入 shell 环 境 。system1 # exec /usr/bin/ssh-agent $SHELL2 使 root 用 户 可 在 全 局 范 围 内 使 用 该 密 钥 。system1 # ssh-add在 Linux 上 启 用 rsh下 节 介 绍 如 何 启 用 远 程 shell。Veritas 建 议 为 Veritas 产 品 全 shell 环 境 。请 参 见 第 349 页 的 “ 手 动 无 密 码 ssh”。有 关 远 程 shell 的 更 多 信 息 , 请 参 见 操 作 系 统 文 档 。启 用 rsh1 要 确 保 rsh rsh-server RPM 已 , 请 键 入 以 下 命 令 :# rpm -qa | grep -i rsh如 果 文 件 中 还 没 有 该 命 令 , 请 键 入 以 下 命 令 , 将 rsh 行 添 加 到 /etc/securetty文 件 中 :# echo "rsh" >> /etc/securetty2 在 /etc/xinetd.d/rsh 文 件 中 修 改 行 disable = no。3 在 /etc/pam.d/rsh 文 件 中 , 将 auth 类 型 由 required 更 改 为 sufficient:authsufficient4 将 promiscuous 标 记 添 加 到 /etc/pam.d/rsh /etc/pam.d/rlogin 中 的pam_rhosts_auth.so 项 之 后 。5 要 启 用 rsh 服 务 器 , 请 键 入 以 下 命 令 :# chkconfig rsh on

全 shell 或 远 程 shell 以 进 行 通 信在 Linux 上 启 用 rsh3556 修 改 .rhosts 文 件 。 .rhosts 文 件 的 每 一 行 包 含 每 个 远 程 系 统 的 完 全 限 定 域 名或 IP 地 址 。 此 文 件 还 包 含 有 权 访 问 本 地 系 统 的 用 户 的 名 称 。 例 如 , 如 果 root用 户 必 须 从 system2 以 远 程 方 式 访 问 system1, 请 将 一 个 与system2.companyname.com 对 应 的 条 目 添 加 到 system1 上 的 .rhosts 文 件 中 ,方 法 是 键 入 下 面 的 命 令 :# echo "system2.companyname.com" >> $HOME/.rhosts7 Veritas 产 品 。禁 用 rsh1 在 /etc/securetty 文 件 中 删 除 rsh 条 目 。2 键 入 以 下 命 令 以 禁 用 rsh 服 务 器 :# chkconfig rsh off3 完 成 过 程 后 , 将 .rhosts 文 件 从 每 个 用 户 的 $HOME 目 录 中 删 除 , 以 确 保 全 性 :# rm -f $HOME/.rhosts

354<strong>配</strong> <strong>置</strong> <strong>安</strong> 全 shell 或 远 程 shell 以 进 行 通 信在 Linux 上 启 用 rsh重 新 启 动 ssh1 在 源 <strong>安</strong> <strong>装</strong> 系 统 (system1) 上 , 将 私 钥 引 入 shell 环 境 。system1 # exec /usr/bin/ssh-agent $SHELL2 使 root 用 户 可 在 全 局 范 围 内 使 用 该 密 钥 。system1 # ssh-add在 Linux 上 启 用 rsh下 节 介 绍 如 何 启 用 远 程 shell。Veritas 建 议 为 Veritas 产 品 <strong>安</strong> <strong>装</strong> <strong>配</strong> <strong>置</strong> <strong>安</strong> 全 shell 环 境 。请 参 见 第 349 页 的 “ 手 动 <strong>配</strong> <strong>置</strong> 无 密 码 ssh”。有 关 <strong>配</strong> <strong>置</strong> 远 程 shell 的 更 多 信 息 , 请 参 见 操 作 系 统 文 档 。启 用 rsh1 要 确 保 rsh <strong>和</strong> rsh-server RPM 已 <strong>安</strong> <strong>装</strong> , 请 键 入 以 下 命 令 :# rpm -qa | grep -i rsh如 果 文 件 中 还 没 有 该 命 令 , 请 键 入 以 下 命 令 , 将 rsh 行 添 加 到 /etc/securetty文 件 中 :# echo "rsh" >> /etc/securetty2 在 /etc/xinetd.d/rsh 文 件 中 修 改 行 disable = no。3 在 /etc/pam.d/rsh 文 件 中 , 将 auth 类 型 由 required 更 改 为 sufficient:authsufficient4 将 promiscuous 标 记 添 加 到 /etc/pam.d/rsh <strong>和</strong> /etc/pam.d/rlogin 中 的pam_rhosts_auth.so 项 之 后 。5 要 启 用 rsh 服 务 器 , 请 键 入 以 下 命 令 :# chkconfig rsh on

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

Saved successfully!

Ooh no, something went wrong!