Subscribe to How-To Geek Підписатись на How-To Geek

Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Connect to VMware Server Console Over SSH Підключення до VMware Server Console За SSH

Has this ever happened to you? Лі це коли-небудь з тобою сталося? 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. Я створив нову віртуальну машину Ubuntu працює на моєму сервері VMware перед моїм від'їздом додому, але забув встановити SSH-сервер ... і тому я не міг дістатися до цього машина на все з мого віддаленого місця розташування. Rather than driving back home I decided to find a solution. Замість того, щоб керувати назад додому, я вирішив знайти рішення.

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. Після невеликого дослідження я виявив, що консоль спілкується по порту 902, так що я додав Порт-експедиторські правило SSH тунель і міг легко отримати на консолі і встановіть OpenSSH.

Port Forwarding with ssh Command Port Forwarding з SSH Командування

In order to open a local port below 1024 you will need to run this command as root, or by using sudo. Для того щоб відкрити локальний порт 1024 Нижче вам буде потрібно запустити цю команду як корінь, або за допомогою Суду. This will open the local port 902 on your client machine and then forward the connection to the server specified by hostname.com. Це відкриє локальний порт 902 на вашій клієнтської машині, а потім передавати підключення до серверу, зазначеному за hostname.com.

sudo ssh -L 902:localhost:902 username@hostname.com Суду SSH-L 902: Localhost: 902 username@hostname.com

At this point you can skip to the last section in the article. На цьому етапі ви можете перейти до останнього розділу в цій статті.

Port Forwarding with SecureCRT Port Forwarding з 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. Якщо ви використовуєте SecureCRT під вікнами, як і я, просто відкрити вашу сторінку сесію і знайти Port Forwarding в настройки та натисніть кнопку "Додати" для нових спрямований зв'язку.

зображення

Enter in a name, and use 902 for both of the Port fields as shown below: Введіть у імені, та будуть використані 902 для обох полях порту, як показано нижче:

зображення

Logging into the Console Вхід в консоль

Bring up your locally installed VMware Server Console, and use localhost for the Remote host name. Виховувати ваших локально встановлені VMware Server Console і використовувати Localhost на ім'я хоста дистанційного керування. 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. Ви не можете використовувати "локальний хост" радіо-кнопки, оскільки вона буде намагатися підключитися безпосередньо до служби ... Ми хочемо, щоб підключитися через SSH тунель.

зображення

And there you are… logged onto your console. І ось що вийшло ... увійти на вашу консоль.

зображення

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. Консолі сервера сам повинен працювати досить добре, але якщо ви намагаєтеся отримати на фактичній консолі одного з віртуальних машин, ви повинні переконатися, що у вас дійсно швидкий зв'язок ... інакше це повільніше, ніж бруд.
  • I'd really only use this for powering machines on/off, or changing the settings. Я дійсно тільки використовувати цю машину для харчування включено / вимкнено, або змінити настройки.
  • You might potentially have to change your local firewall settings to allow the port. Ви можете потенційно повинні змінити ваші локальні налаштування брандмауера, щоб в порту.
  • Putty users should be able to easily adapt the settings above to work for them. Putty користувачі повинні мати можливість легко адаптувати вище налаштування для роботи з ними.
This article was originally written on 10/10/07 Tagged with: Ця стаття була спочатку написана на 10.10.07 тегами: Linux Linux

Daily Email Updates Email Щоденні оновлення

You can get our how-to articles in your inbox each day for free. Ви можете отримати наші довідкові статті у Вашу поштову скриньку щодня безкоштовно. Just enter your name and email below: Просто введіть ваші ім'я та адресу електронної пошти нижче:


Name: Ім'я:
Email: Електронна пошта:

Comments (1) Коментарі (1)

  1. Guy Leech Гай Ліча

    To get a decent console connection, use VNC to the VMware Server itself, over SSH forwarded ports. Щоб отримати гідну консолі зв'язку, використовуючи VNC на самій VMware Server, більш SSH спрямований порти. 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). Це не налаштовується в графічному інтерфейсі користувача в сервер (це в 6 робочих станцій), вам доведеться змінити. VMX файлу для відповідного В.М. безпосередньо (якщо віртуальна машина не працює). Just add something like the following: Просто додайте щось подібне до наступного:

    RemoteDisplay.vnc.enabled = “true” RemoteDisplay.vnc.enabled = "True"
    RemoteDisplay.vnc.port = “5910″ RemoteDisplay.vnc.port = "5910"
    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. Потім встановити SSH експедирування від сказати локальний порт 5910 на порт 5910 на VMware Server безпосередньо (не IP віртуальної машини) і використовувати VNC клієнт, щоб 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. Потім я тримаю список портів я використовую для кожної віртуальній машині - очевидно, ви повинні використовувати різні порти для різних віртуальних машин, якщо використовувати їх одночасно.

    This will even let you do a bare “metal” build of the VM since you are not using networking in the VM itself. Це буде навіть дозволяють робити голого "металу" створення віртуальної машини, оскільки ви не використовуєте мережу в В.М. себе.


Our Friends Наші друзі
Getting Started Приступаючи до роботи


About How-To Geek Про How-To Geek
What Is That Process? Що це за процес?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe Ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. Всі права захищені.