Connect to VMware Server Console Over SSH Hubungkan ke VMware Server Console Over SSH
Has this ever happened to you? Apakah ini pernah terjadi pada Anda? 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. Saya membuat sebuah mesin virtual yang baru menjalankan Ubuntu di VMware server sebelum saya meninggalkan rumah, tapi lupa untuk menginstal ssh server ... jadi aku tidak bisa untuk mesin sama sekali dari lokasi terpencil. Rather than driving back home I decided to find a solution. Alih-alih perjalanan kembali pulang, aku memutuskan untuk mencari solusi.
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. Setelah sedikit riset saya menemukan bahwa konsol berkomunikasi pada port 902, jadi saya menambahkan aturan forwarding port-ssh ke terowongan dan dapat dengan mudah mendapatkan di konsol dan menginstal openssh.
Port Forwarding with ssh Command Port Forwarding dengan ssh Command
In order to open a local port below 1024 you will need to run this command as root, or by using sudo. Dalam rangka untuk membuka port lokal di bawah 1024 Anda akan perlu menjalankan perintah ini sebagai root, atau dengan menggunakan sudo. This will open the local port 902 on your client machine and then forward the connection to the server specified by hostname.com. Ini akan membuka port lokal 902 pada mesin klien Anda dan kemudian meneruskan koneksi ke server ditentukan oleh 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. Pada titik ini Anda dapat melompat ke bagian terakhir dalam artikel.
Port Forwarding with SecureCRT Port Forwarding dengan 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. Jika Anda menggunakan Windows SecureCRT di bawah seperti yang saya lakukan, buka saja sesi anda pilihan dan menemukan pengaturan Port Forwarding di dan klik tombol Tambah untuk diteruskan baru sambungan.

Enter in a name, and use 902 for both of the Port fields as shown below: Masukkan sebuah nama, dan menggunakan 902 untuk kedua bidang Port seperti yang ditunjukkan di bawah ini:

Logging into the Console Login ke Konsol
Bring up your locally installed VMware Server Console, and use localhost for the Remote host name. Bawa diinstal lokal Anda VMware Server Console, dan menggunakan localhost untuk Remote nama 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. Anda tidak dapat menggunakan "Local host" tombol radio karena akan mencoba untuk terhubung secara langsung ke layanan ... kita ingin menghubungkan lebih dari SSH terowongan.

And there you are… logged onto your console. Dan ada Anda ... login ke konsol anda.

Notes Catatan
- 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. Server konsol itu sendiri harus bekerja cukup baik, tapi jika Anda mencoba dan mendapatkan ke konsol sesungguhnya salah satu mesin virtual Anda harus memastikan bahwa Anda memiliki koneksi yang sangat cepat ... kalau tidak itu lebih lambat dari kotoran.
- I'd really only use this for powering machines on/off, or changing the settings. Aku benar-benar hanya menggunakan ini untuk menyalakan mesin on / off, atau mengubah pengaturan.
- You might potentially have to change your local firewall settings to allow the port. Anda mungkin potensial harus mengubah pengaturan firewall lokal Anda agar pelabuhan.
- Putty users should be able to easily adapt the settings above to work for them. Putty pengguna harus dapat dengan mudah menyesuaikan pengaturan di atas untuk bekerja untuk mereka.

Daily Email Updates Harian Email Pembaharuan
You can get our how-to articles in your inbox each day for free. Anda bisa mendapatkan kita bagaimana-untuk artikel dalam kotak masuk Anda setiap hari secara gratis. Just enter your name and email below: Cukup masukkan nama dan email Anda di bawah ini:



To get a decent console connection, use VNC to the VMware Server itself, over SSH forwarded ports. Untuk mendapatkan sambungan konsol yang layak, gunakan VNC ke VMware Server itu sendiri, di SSH port diteruskan. 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). Hal ini tidak dapat dikonfigurasi dalam GUI di Server (itu adalah di Workstation 6), Anda harus mengedit. Vmx file untuk VM yang relevan secara langsung (ketika VM tidak berjalan). Just add something like the following: Hanya menambahkan sesuatu seperti berikut:
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. Kemudian menetapkan SSH port forwarding dari port lokal mengatakan 5.910 ke port 5.910 pada VMware Server itu sendiri (bukan IP VM) dan menggunakan VNC klien untuk menyambung ke 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. Saya kemudian menyimpan daftar port yang saya gunakan untuk setiap VM - jelas anda harus menggunakan port yang berbeda untuk berbagai VMS jika Anda menggunakannya secara bersamaan.
This will even let you do a bare “metal” build of the VM since you are not using networking in the VM itself. Ini bahkan akan membiarkan Anda melakukan telanjang "logam" membangun dari VM karena Anda tidak menggunakan jaringan di VM itu sendiri.