Configure SecureCRT to connect to the Linux environment of VirtualBox Virtual Machine

Source: Internet
Author: User
Tags nameserver

In actual O & M, we often use SecuriteCRT to remotely control Linux servers. The following describes how to build a linux development environment using VirtualBox in windows 7 and use SecurityCRT to remotely access the linux server.

The procedure is as follows:

1. VirtualBox Installation

2. Ubuntu Installation

3. SecuriteCRT Installation

4. Configure the Linux Network

I. Software I use

VirtualBox4.0, VirtualBox is an open-source software, which can be downloaded at https://www.virtualbox.org/wiki/downloads

Ubuntu11.10 DeskTop version. Ubuntu is an open-source free system and can be downloaded at http://www.ubuntu.org.cn/download/

SecuriteCRT6.6, SecuriteCRT is a paid software, but you can find the cracked version on the Internet

Ii. Configuration

The software installation in the first three steps is relatively simple, so we will not introduce it in detail. We will mainly introduce the configuration in step 4.

However, when installing Ubuntu, you must note that before or after installation, click Settings of VirtualBox.

Note that

After the end, you need to virtualize a network card in the settings, which will be used by the host to remotely access the linux server. The details are as follows:

 

Network Connection 1 follows the default setting. Network Connection 2 sets the connection mode to "Bridged Adapter"

 

After installation, configure the network:

(1) run the ifconfig command in Linux to check the eth1 Nic, for example:

If eth1 does not appear, perform the following operations. If eth1 does not appear, skip the following steps:

Sudo ifconfig eth1 XXX netmask 255.255.255.0

Sudo ifconfig eth1 up

Note: XXX can be set by referring to the bridging network card under Windows. For example, my computer is:

Then XXX can be set to 192.168.93.X (X cannot be 0, 11, or 255). You can see it again in ifconfig.

(2) Use the editor in Linux (the following are all gedit files that can be used according to your preferences) to open the interfaces file.

Sudo gedit/etc/network/interfaces

Add the following content to the end of the file:

# Eth1

Auto eth1

Iface eht1 inet static

Address XXX # Note: XXX is the ip address set above.

Netmask 255.255.255.0

Broadcast 192.168.X.255 # Note: The value of X corresponds to the position in XXX. For example, my value is 93.

Save the file and exit gedit. After the VM is restarted, eth1, that is, the second Nic, is automatically started. Note that you must add the line "broadcast 192.168.X.255". Otherwise, the OpenSSH client tool cannot connect to the VM.

(3) Use the following command in Linux:

Sudo gedit/etc/resolv. conf

Add the following content under the file:

Nameserver 202.106.196.115

Nameserver 202.106.196.152

Nameserver 8.8.8.8

Nameserver 192.168.1.1

Run the following command to exit gedit and restart networking:

Sudo/etc/init. d/networking restart

(4) At this time, the eth1 settings are complete. Next, make sure that ssh on linux is enabled. If it is not started or not installed, install and enable ssh. The command is as follows:

Sudo apt-get install openssh-server openssh-client

At this time, Linux is basically set up, and then use securiteCRT to connect to Linux:

HostName is the ip address you just set, and port is usually 22 by default (you can use gedit etc/ssh/sshd_config in Linux to view ssh configuration parameters, you can also use sudo gedit/etc/ssh/sshd_config to edit and modify it)

Username is the account used to install Ubuntu settings. If the root account is enabled, you can also use the root account.

Then enter the password to log on:

Note: Sometimes garbled characters appear in securiteCRT, you can say that the encoding in securiteCRT is set to UTF-8 (in the Options Option of SecureCRT select Session Options, modify the character encoding in Appearance to UTF-8, this can only modify the securiteCRT encoding display, may be in Linux or garbled, for Linux system garbled problem can refer to: http://www.bkjia.com/ OS /201102/83676.html


From song Xinkai

<Script> </script>

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.