2006年12月12日星期二

利用root远程ssh访问ESX Server

SSH Security

SSH is commonly used UNIX and Linux command shell that lets you remotely log on to the service console and perform certain management and configuration tasks for ESX Server.

In this ESX Server release, one key features of this enhancement include: Limits on remote logons as root.

 

When ESX Server is installed, 'root' user not able to log in via SSH. This suggestion is from official document:

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 he command prompt.
  3.  Use nano or antoher 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

Done!

没有评论: