注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 路由基础命令复习笔记
 帮助

使用SSH安装ESX


2008-06-10 11:02:54
 标签:SSH ESX install Packages rpm   [推送到技术圈]

1. First, install the following three packages first and the packages can be found under \\192.168.4.183\Platforms\ESX\ESX 2.5.0\32bit\Packages
    openssl-0.9.7l.tar.gz
    zlib-1.2.3.tar.gz
    openssh-3.9p1.tar.gz
pam-0.75-66.i386.rpm
pam-devel-0.75-66.i386.rpm

Details of the installation....
==========================
gunzip openssl-0.9.7l.tar.gz
tar xf openssl*
cd openssl*
./config
make
make install

gunzip zlib*
tar xf zlib*
cd zlib*
./configure
make
make install

gunzip openssh*
tar xf openssh*
cd openssh*
./configure --with-pam
make
make install

Q: The error message "configure: error: PAM headers not found" when running the command "./configure --with-pam"
A: You need to install the pam-devel packages [pam-0.75-66.i386.rpm and pam-devel-0.75-66.i386.rpm]
==========================

2. Create the sshd and ssh link for the scrīpts
# rm -rf /usr/sbin/sshd
# rm -rf /usr/bin/ssh
# ln -s /usr/local/sbin/sshd /usr/sbin/sshd
# ln -s /usr/local/bin/ssh /usr/bin/ssh

3. Create an sshd startup/shutdown scrīpt.

Run the following command and input the contents as below. [Please make sure that the location of the command "kill" is correct. In some platforms, the command "kill" is under "/usr/bin".]
# vi /etc/init.d/sshd

===================================
#!/bin/sh

case "$1" in
'start')
   /usr/local/sbin/sshd
   ;;
'stop')
   /bin/kill `/usr/bin/head -1 /var/run/sshd.pid`
   ;;
'restart')
   /bin/kill -HUP `/usr/bin/head -1 /var/run/sshd.pid`
   /usr/local/sbin/sshd
   ;;
*)
   echo "Usage: $0 { start | stop | restart }"
   exit 1
   ;;
esac
exit 0
========================================

# chown root:root /etc/init.d/sshd
# chmod 744 /etc/init.d/sshd
# ln -s /etc/init.d/sshd /etc/rc2.d/S98sshd

4. Start sshd.
# /etc/init.d/sshd start

5. Restart sshd
# /etc/init.d/sshd restart




    文章评论
 
 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: