If you need to manage a Solaris 10 box with a minimal install, and SSH is not available, you can install it off of the 2nd CD. Rather than figure out the path to your CDROM (see this article), it was easier in our case to just tar up the needed packages and FTP them to our Solaris box:
root@srv-3 Product # cp -R SUNWsshcu SUNWsshdr SUNWsshdu SUNWsshr SUNWsshu /home/srv-1/sshpkg/ root@srv-3 Product # cd /home/srv-1/sshpkg/ root@srv-3 sshpkg # ls SUNWsshcu SUNWsshdr SUNWsshdu SUNWsshr SUNWsshu root@srv-3 sshpkg # tar -cf ../ssh.tar * root@srv-3 sshpkg # tar -tf ../ssh.tar SUNWsshcu/ SUNWsshcu/archive/ . . . SUNWsshu/reloc/ SUNWsshu/reloc/usr/ SUNWsshu/reloc/usr/bin/ SUNWsshu/reloc/usr/lib/ SUNWsshu/reloc/usr/lib/ssh/ root@srv-3 sshpkg # |
On the Solaris side, FTP these to /tmp, then from tmp:
tar -xf ssh.tar pkgadd -d . svcadm enable ssh svcadm restart ssh |
vi /etc/ssh/sshd_config
....
# Are root logins permitted using sshd.
# Note that sshd uses pam_authenticate(3PAM) so the root (or any other) user
# maybe denied access by a PAM module regardless of this setting.
# Valid options are yes, without-password, no.
PermitRootLogin yes
....
本文介绍如何在Solaris 10的最小安装环境中安装SSH服务,适用于没有预装SSH的情况。通过从第二张安装光盘中提取所需包并使用FTP传输到目标机器上,之后进行解压和安装。
936

被折叠的 条评论
为什么被折叠?



