Connect to VMware Server Console Over SSH Kumonekta sa VMware Server Console Higit sa SSH
Has this ever happened to you? Ay ito ba ang nangyari sa inyo? I created a new virtual machine running Ubuntu on my VMware server before I left home, but forgot to install the ssh server… so I couldn't get to that machine at all from my remote location. Ako ng isang bagong virtual machine na tumatakbo Ubuntu sa aking VMware server bago ako umalis sa bahay, pero nakalimutan i-install ang ssh server ... kaya hindi ako maaaring makakuha na sa makina sa lahat mula sa aking mga remote na lokasyon. Rather than driving back home I decided to find a solution. Kaysa sa pagmamaneho sa likod bahay ko ay nagpasya na makahanap ng solusyon.
After a bit of research I discovered that the console communicates on port 902, so I added a port-forwarding rule to an ssh tunnel and was able to easily get on the console and install openssh. Matapos ang isang piraso ng research natuklasan ko na ang console nakikipanayam sa port 902, kaya ako nagdagdag ng isang port-nagpapasa tuntunin sa isang ssh tunel at madaling makuha sa mga console at i-install openssh.
Port Forwarding with ssh Command Port Forwarding sa ssh Command
In order to open a local port below 1024 you will need to run this command as root, or by using sudo. Upang buksan ang isang lokal na port sa ibaba 1,024 kailangan mong patakbuhin ang command na bilang root, o sa pamamagitan ng paggamit ng sudo. This will open the local port 902 on your client machine and then forward the connection to the server specified by hostname.com. Na ito ay buksan ang mga lokal na port 902 sa inyong mga client makina at pagkatapos ay pasulong na ang koneksyon sa server na tinukoy sa pamamagitan ng hostname.com.
sudo ssh -L 902:localhost:902 username@hostname.com sudo ssh-L 902: localhost: 902 username@hostname.com
At this point you can skip to the last section in the article. Sa puntong ito maaari mong laktawan sa huling section sa artikulo.
Port Forwarding with SecureCRT Port Forwarding sa SecureCRT
If you use SecureCRT under Windows like I do, just open up your session options and find Port Forwarding in settings and click the Add button for a new forwarded connection. Kung gumamit ka SecureCRT sa ilalim ng Windows gusto ko lang buksan ang iyong mga pagpipilian sa session at makahanap ng Port Forwarding sa mga setting at i-click ang Magdagdag ng mga pindutan para sa isang bagong maipasa koneksyon.

Enter in a name, and use 902 for both of the Port fields as shown below: Ipasok ang isang pangalan, at gamitin ang 902 para sa parehong mga patlang ng Port tulad ng ipinapakita sa ibaba:

Logging into the Console Pumapasok sa Console
Bring up your locally installed VMware Server Console, and use localhost for the Remote host name. Dalhin ang iyong lokal na naka-install na VMware Server Console, at gamitin localhost para sa pangalan Remote host. You can't use the “Local host” radio button because it will attempt to connect directly to the service… we want to connect over the SSH tunnel. Ikaw ay hindi maaring gamitin ang "Lokal na host ng" radio button dahil ito ay pagtatangka upang kumonekta direkta sa serbisyo sa ... gusto naming upang kumonekta sa SSH tunel.

And there you are… logged onto your console. At doon ikaw ay naka-log in ... papunta sa inyong console.

Notes Notes
- The server console itself should work fairly well, but if you try and get onto the actual console of one of the virtual machines you should make sure you have a really fast connection… otherwise it's slower than dirt. Ang server console ang sarili sa trabaho ay dapat na kabutihan, ngunit kung subukan mo at makakuha ng papunta sa aktwal na console ng isa sa mga virtual machine na dapat mong tiyakin na mayroon kang isang tunay na mabilis na koneksyon ... kung hindi ito slower kaysa sa dumi.
- I'd really only use this for powering machines on/off, or changing the settings. Gusto ko talagang lamang gamitin ito para sa powering machine on / off, o baguhin ang mga setting.
- You might potentially have to change your local firewall settings to allow the port. Maaari mong may potensyal na upang baguhin ang iyong mga lokal na setting ng firewall upang payagan ang port.
- Putty users should be able to easily adapt the settings above to work for them. Masilya ang mga gumagamit ay dapat na madaling iakma ang mga setting sa itaas na magtrabaho para sa kanila.

Daily Email Updates Araw-araw na Updates Email
You can get our how-to articles in your inbox each day for free. Maaari kang makakuha ng aming kung-paano na mga artikulo sa iyong inbox sa bawat araw para sa libre. Just enter your name and email below: Ilagay lamang ang inyong pangalan at email sa ibaba:



To get a decent console connection, use VNC to the VMware Server itself, over SSH forwarded ports. Upang makakuha ng isang disenteng console na koneksyon, gamitin ang VNC sa VMware Server mismo, sa paglipas ng SSH port maipasa. This is not configurable in the GUI in Server (it is in Workstation 6), you have to edit the .vmx file for the relevant VM directly (when the VM is not running). Na ito ay hindi maaaring isaayos sa GUI sa Server (ito ay nasa Workstation 6), kailangan mong i-edit ang. Vmx file para sa mga kaugnay VM direkta (kapag ang VM ay hindi tumatakbo). Just add something like the following: Magdagdag lamang ng isang bagay na tulad ng sumusunod:
RemoteDisplay.vnc.enabled = “true” RemoteDisplay.vnc.enabled = "true"
RemoteDisplay.vnc.port = “5910″ RemoteDisplay.vnc.port = "5,910"
RemoteDisplay.vnc.password = “S0mePassw0rd” RemoteDisplay.vnc.password = "S0mePassw0rd"
RemoteDisplay.vnc.keymap = “uk” RemoteDisplay.vnc.keymap = "uk"
Then set an SSH port forwarding from say local port 5910 to port 5910 on the VMware Server itself (not the IP of the VM) and use a VNC client to connect to 127.0.0.1:5910. Pagkatapos ay itakda ang isang SSH port paglilipat mula sa mga sinasabi ng mga lokal na port 5,910 sa 5,910 port sa VMware Server mismo (hindi sa mga IP ng VM) at gumamit ng isang VNC client upang kumonekta sa 127.0.0.1:5910. I then keep a list of the ports I use for each VM – obviously you must use different ports for different VMs if you use them concurrently. Ako pagkatapos ay panatilihin ang isang listahan ng mga "ports" na gagamitin ko para sa bawat VM - malinaw naman kailangan mong gumamit ng ibang port para sa iba't ibang VMs kung gagamitin mo ang mga ito concurrently.
This will even let you do a bare “metal” build of the VM since you are not using networking in the VM itself. Ito ay kahit na gawin mo ang isang hubad "metal" magtayo ng VM dahil hindi ka gumagamit ng networking sa VM mismo.