Using Xshell remote connection under Windows VirtualBox Linux inside

Source: Internet
Author: User

First Stage: Basic installation

Install Virtual Box

Install Xubuntu in VirtualBox: A Linux distribution for the UBUNTU+XFCE desktop environment

Install Xmanager Enterprise 5[with Xshell in Windows, establish a remote connection]

Phase II: Basic settings

Check VirtualBox host-only network with cmd--ipconfig under Windows find IPV4 Address: 192.168.56.1[This is generally the case)

Xubuntu under the Terminal--ifconfig view Eth0 inet addr:10.0.2.15[is also generally this]

On the menu in VirtualBox, locate the control--settings--Network and go to port forwarding settings:

Click the button on the right to add a new rule

The name can be defaulted, the protocol uses TCP, the host ip:192.168.56.1, the port is generally: 22, subsystem ip:10.0.2.15, subsystem port is also: 22

Phase III: SSH protocol support

Complete the following checks and installs in Xubuntu:

sudo apt-get update//Completion of system updates

cd/etc/init.d///Enter this folder to see if the SSH service is installed

sudo apt-get install openssh-server//If not installed, run this command to automatically install

sudo etc/init.d/ssh restart//In order to ensure the status of SSH successfully, run the restart service instructions, Restart/open/start corresponding to the operation of their own meaning

PS-E |grep ssh//Print all the processes, send to the pipeline command, filter shows only the process that contains SSH, if run, display: Process number sshd

This ensures that Linux can be connected remotely, and the following commands are relevant commands

sudo apt-get install openssh-client//can install SSH client, so you can use Linux to remotely connect to other machines

cd/etc/ssh///Enter this directory to see a file ssh_config, open this file can view the default port (port)

Stage four: Implementing remote connections

Running Linux in a virtual machine

Run Xshell, create a new session, then select the SSH protocol, set the host address: 192.168.56.1, the port number is: 22. Establish a connection

Use Linux to set a good user name and password to achieve a text format remote login?

Use the RDP protocol to enable remote sharing of the graphical interface using the VirtualBox enhancement tool

Windows has a "Remote Desktop" tool, the supported protocols are RDP (Remote Desktop Protocol), usually can be connected to the computer and desktop sharing, although the bandwidth requirements are relatively large, but the experience is very good, An error occurred today when trying to implement the Linux Xfce desktop environment that connects to the native virtual machine: The computer cannot connect to another console session on the remote computer because you are running a console session.

Baidu, I think the main problem is that this machine is connected to the machine and not remote, so in principle, it can be achieved. It should be possible to install two systems on two computers of the same network segment. However, the second is to be able to rely on, the powerful VirtualBox extension of the implementation of Remote Desktop, but this and the Linux setup relationship is not very big.

First say the one that didn't come true:

sudo apt-get install XRDP//install a package to support the RDP protocol

sudo apt-get install vnc4server//installation related services

sudo apt-get install tightvncserver//This and the previous sentence implementation can be written together

Then the settings for the port and the connection to the Remote desktop on another Windows

Again, the occasional chance to achieve one of the following:

Run Linux inside the virtual machine.

Then download the enhanced tool on VirtualBox's website.

Install this tool by managing--Global settings--extensions

Then go to control--settings--Display--Remote Desktop

Select Open port number: Generally will give a suitable value assumed to be 3333, the authentication method selected empty, click OK.

Then shut down the virtual machine and restart Windows

Run again Linux, use another Windows to access my host's IP: Open port.

Suppose my host address is: 119.75.217.109[Of course this is Baidu's IP]

The remote tool connects is 119.75.217.109:3333.

This is a traditional Windows connection, except that the VirtualBox given port number is specified to share the graphical desktop environment of Linux. [Although very low-level still very happy]

2015-03-08

Using Xshell remote connection under Windows VirtualBox Linux inside

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.