惠普刀片机7代及虚拟VSpare5(六)
(2012-05-17 23:28:18)
标签:
it |
分类: 工作 |
ESXi VSpare5
三个小技巧
1. Enable Clipboard Copy and paste option
Clipboard Copy and Paste option is disabled in vSphere Client
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1026437
# cp -p /etc/vmware/config /etc/vmware/config.`date +%Y%m%d`
# vi /etc/vmware/config
Add the following lines to the bottom and save:
isolation.tools.copy.disable="FALSE"
isolation.tools.paste.disable="FALSE"
NOTE: You MUST shutdown the ESX host for the above changes to take effect (a restart will not work)
2. Create Admin accounts
# cp -p /etc/passwd /etc/passwd.`date +%Y%m%d`
# vi /etc/passwd
Add the following to the bottom of the file:
user1:x:501:0:User One - Position:/:/bin/ash
user2:x:502:0:User Two - Position:/:/bin/ash
# cp -p /etc/shadow /etc/shadow.`date +%Y%m%d`
# vi /etc/shadow
Add the following to the bottom of the file:
user1:$1$aYVNtPML$8cYF0WaG.pNmp6s0lKlj80:18000:0:99999:7:::
user2:$1$aYVNtPML$8cYF0WaG.pNmp6s0lKlj80:18000:0:99999:7:::
3. Disable ROOT login via SSH
# cp -p /etc/ssh/sshd_config /etc/ssh/sshd_config.`date +%Y%m%d`
# vi /etc/ssh/sshd_config
Change 'PermitRootLogin' to 'no'
Change 'PasswordAuthentication' to 'yes'
Example:
PermitRootLogin no
PasswordAuthentication yes
# /etc/init.d/SSH restart
1. Enable Clipboard Copy and paste option
Clipboard Copy and Paste option is disabled in vSphere Client
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1026437
# cp -p /etc/vmware/config /etc/vmware/config.`date +%Y%m%d`
# vi /etc/vmware/config
Add the following lines to the bottom and save:
isolation.tools.copy.disable="FALSE"
isolation.tools.paste.disable="FALSE"
NOTE: You MUST shutdown the ESX host for the above changes to take effect (a restart will not work)
2. Create Admin accounts
# cp -p /etc/passwd /etc/passwd.`date +%Y%m%d`
# vi /etc/passwd
Add the following to the bottom of the file:
user1:x:501:0:User One - Position:/:/bin/ash
user2:x:502:0:User Two - Position:/:/bin/ash
# cp -p /etc/shadow /etc/shadow.`date +%Y%m%d`
# vi /etc/shadow
Add the following to the bottom of the file:
user1:$1$aYVNtPML$8cYF0WaG.pNmp6s0lKlj80:18000:0:99999:7:::
user2:$1$aYVNtPML$8cYF0WaG.pNmp6s0lKlj80:18000:0:99999:7:::
3. Disable ROOT login via SSH
# cp -p /etc/ssh/sshd_config /etc/ssh/sshd_config.`date +%Y%m%d`
# vi /etc/ssh/sshd_config
Change 'PermitRootLogin' to 'no'
Change 'PasswordAuthentication' to 'yes'
Example:
PermitRootLogin no
PasswordAuthentication yes
# /etc/init.d/SSH restart