每次 ESXi 要在服务器上开启 SSH 服务,总是忘记具体操作方法,都要去 google 才行,这里记录一下。
- Go to the ESXi console and press alt+F1
- Type: unsupported
- Enter the root password(No prompt, typing is blindly)
- At the prompt type “vi /etc/inetd.conf”
- Look for the line that starts with “#ssh” (you can search with pressing ”/”)
- Remove the ”#” (press the “x” if the cursor is on the character)
- Save “/etc/inetd.conf” by typing “:wq!”
- Restart the management service “/sbin/services.sh restart”
用下面的方法可以避免重新启动机器
- Restart the management service “/sbin/services.sh restart” 10 – Kill inetd : kill
ps | grep inetd | cut -f2 -d" "11 – Start inetd: inetd