11
Nov/084
Nov/084
VMware ESX and ESXi – tips and tricks
To clear connection history in VIC go to regedit and delete the line “RecentConnections” from HKEY_CURRENT_USER\Software\VMware\VMware Infrastructure Client\Preferences.
To allow root access to logon through ssh in ESX:
- Logon to console as root
- Edit sshd_config: nano /etc/ssh/sshd_config and change “PermitRootLogin” from “no” to “yes”
- Restart ssh: service sshd restart
To allow root access to logon through ssh in ESXi:
- Open console and press Alt+F1
- Type “unsupported” and enter root password to log on
- Open inetd.conf in vi: vi /etc/inetd.conf
- Find the line that starts with #ssh, uncomment, save and close the file, and then restart services on your ESXi server: /sbin/services.sh restart
To allow non-root access to logon through ssh in ESXi:
- Log on to console: press Alt-F1 (or through root ssh)
- Edit inetd.conf: vi /etc/inetd.conf
- Find this line: “ssh stream tcp nowait root /sbin/dropbearmulti dropbear ++min=0,swap,group=shell -i” and add -w to the end. Save and close the file.
- Create the new users and home directory: useradd -d /home/username -P username
- Reboot
Related posts:
- Debian: Etch x64 and VMware Server Cannot connect to host x.x.x.x: No connection could be made because the target machine actively refused it.
- VMware: Install Intel ET 82575 and 82576 drivers on ESX 4 vSphere
- Linux: Apache Tomcat tips and tricks
- Linux: tar tips and tricks
- VMware – Linux: OS cannot mount /dev/sd* after a virtual machine is converted – Waiting for device /dev/sd* to appear… not found – fall back
Enjoy this article?
Please, insert a valid App ID, otherwise your plugin won't work correctly.
Comments (4)
Trackbacks (0) ( subscribe to comments on this post )
Leave a comment
No trackbacks yet.

4:51 AM on February 15th, 2009
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6
I found this helpfull, however, it seems esx 3i 3.5.0 build-123629 does not keep /home across a reboot.
adding “mkdir -p /home/username” to /etc/rc.local or something to that effect seems to work ok (but, file will be lost at reboot)
11:39 AM on February 15th, 2009
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)
Correct. It seems to be an internal ESX setting. Personally I didn’t find having a non-root user on ESX helpful.
9:02 AM on July 17th, 2009
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Starting with ESX 3.5 Update 2, services.sh restart no longer restarts the inetd service. You must type the following command at the console ps | grep inetd and press enter to get the process id for inetd. You will get something like 1299 1299 busybox inetd. The process id is, in this example, 1299. You will then type kill -HUP 1299 and press enter. This restarts inetd. You should now be able to gain root ssh access to the ESXi 3.5 Update 2 or above host. This worked with ESXi 4.0.
9:51 PM on July 17th, 2009
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
Thanks for update!