Connect to VMware Server Console Over SSH Connectar a VMware Server Console a través de SSH
Has this ever happened to you? Ha passat alguna vegada? 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. He creat una nova màquina virtual corrent Ubuntu al meu servidor VMware abans de sortir de casa, però es va oblidar d'instal lar el servidor ssh ... així que no vaig poder arribar a aquesta màquina en tots els de la meva ubicació remota. Rather than driving back home I decided to find a solution. En lloc de conduir de tornada a casa vaig decidir buscar una solució.
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. Després d'una mica de recerca vaig descobrir que la consola es comunica al port 902, per la qual cosa afegeix un port regla de reenviament a un túnel SSH i va ser capaç d'aconseguir fàcilment a la consola i instal lar OpenSSH.
Port Forwarding with ssh Command Port Forwarding amb comanda ssh
In order to open a local port below 1024 you will need to run this command as root, or by using sudo. Per tal d'obrir un port local per sota de 1024 haurà d'executar aquesta comanda com a root, o utilitzant sudo. This will open the local port 902 on your client machine and then forward the connection to the server specified by hostname.com. Això obrirà el port local 902 a la màquina client, i posteriorment enviar la connexió amb el servidor especificat per 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. En aquest punt vostè pot saltar a la darrera secció de l'article.
Port Forwarding with SecureCRT Port Forwarding amb 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. Si utilitzeu SecureCRT sota Windows com jo, només has d'obrir les seves opcions i trobar període de redireccionament de ports en la configuració i feu clic al botó Afegir per a una connexió transmetre noves.

Enter in a name, and use 902 for both of the Port fields as shown below: Introduïu un nom, i l'ús de 902 per als dos camps del port, com es mostra a continuació:

Logging into the Console Inici de sessió a la consola de
Bring up your locally installed VMware Server Console, and use localhost for the Remote host name. Porta el instal lat localment VMware Server Console, i localhost ús del nom de host remot. 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. No podeu utilitzar el "host local" botó de ràdio, ja que intentarà connectar-se directament al servei de ... volem connectar a través del túnel SSH.

And there you are… logged onto your console. I aquí estàs ... sessió a la consola.

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. El servidor de la consola en si hauria de funcionar prou bé, però si intenta i entrar a la consola real d'una de les màquines virtuals ha d'assegurar de tenir una connexió molt ràpid ... si no és més lent que el de terra.
- I'd really only use this for powering machines on/off, or changing the settings. Realment em només el faig servir per alimentar màquines d'encès / apagat, o canviar la configuració.
- You might potentially have to change your local firewall settings to allow the port. Que potencialment podria haver de canviar la configuració del servidor de seguretat local per permetre el port.
- Putty users should be able to easily adapt the settings above to work for them. Els usuaris de massilla ha de ser capaç d'adaptar-se fàcilment els ajustos a treballar per a ells.

Daily Email Updates Daily Email Updates
You can get our how-to articles in your inbox each day for free. Vostè pot obtenir el nostre com-als articles a la teva safata d'entrada cada dia de forma gratuïta. Just enter your name and email below: Només cal que introdueixis el teu nom i correu electrònic a continuació:



To get a decent console connection, use VNC to the VMware Server itself, over SSH forwarded ports. Per obtenir una connexió de consola decent, utilitzar VNC per al VMware Server si mateix, a través de SSH ports reenviat. 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). Això no es pot configurar en la interfície d'usuari en servidor (és a Workstation 6), vostè ha de editar l'arxiu. Vmx de la màquina virtual directament pertinents (quan la màquina virtual no s'està executant). Just add something like the following: Només ha d'afegir alguna cosa com el següent:
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 = "és"
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. Després, establir un redireccionament de ports de SSH, dir que el port local 5.910 al port 5.910 al servidor de VMware en si mateix (no la IP de la màquina virtual) i utilitzar un client VNC per connectar-se a 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. Després d'una llista dels ports que ús per a cada màquina virtual - òbviament ha d'utilitzar diferents ports per a les màquines virtuals diferents si es fan servir al mateix temps.
This will even let you do a bare “metal” build of the VM since you are not using networking in the VM itself. Això fins i tot li permetrà fer un nu "de metall" la construcció de la màquina virtual ja que no està utilitzant una xarxa en la màquina virtual de si mateix.