分类:
2006-10-19 11:02:25
刚安装完ESX后,缺省root用户只能在console上登录,远程用ssh登录是禁止的。因此,安装完的第一件事就是允许root远程ssh登录。
这时来自Server Configuration Guide的做法
To change the default SSH configuration
1 Log on to the service console and acquire root privileges.
2 Change directories by entering cd /etc/ssh at the command prompt.
3 Use nano or another text editor to perform any or all of following actions, as
appropriate.
! To allow remote root logon, change the setting to yes in the following line in
the sshd_config file:
PermitRootLogin no
4 Save your changes and close the file.
5 Execute the following command to restart the SSHD service:
service sshd restart
另外一种方法是采用传统的发送SIGHUP的方法
先使用ps –ef|grep sshd或service sshd status找到sshd的pid, 例如839, 然后kill –HUP 839就可以了