使用SSH安装ESX
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 本文出自 51CTO.COM技术博客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 |



leesun
博客统计信息
热门文章
最新评论
友情链接
