Ubuntu Build SSH Connection (connection: Bridge network card, network address translation (NAT))

Source: Internet
Author: User
Tags vm virtualbox

Operating system: Ubuntu Server 16.04.2

SSH software: Putty (remote Connection tool, depending on the native operating system select the corresponding version of Putty)

----------------------------------Network connection mode: Bridging the NIC-----------------------------------

The first step:

1) Install Openssh-server, command as follows:

sudo apt install openssh-server

Because I have installed openssh-server on this machine, it is inconsistent with the first installation (please ignore!). )

Tip: If [Server] does not install openssh-server this thing, we cannot telnet [server];

Advantage: Open source, free, entire transfer process encryption ( secure remote connection )

To uninstall Openssh-server, the command is as follows:

  sudo apt remove--purge openssh-server

how Ubuntu systems Uninstall and remove software: https://jingyan.baidu.com/article/59a015e39abf3df79588655b.html

The simplest way is that when we know the name of the software, we can simply enter the command in the Terminal command window:

sudo apt-get remove--purge google-chrome-unstable

--purge option means complete removal of changes to software and related files

2) To view the IP address, the command is as follows:

ifconfig or IP a

Step Two:

1) Install putty (my system is 64 bits, so install 64-bit putty)

  

2) Open putty, connection requires 2 parameters: IP address, port

IP address: 192.168.1.105 (ifconfig view)

Port: (SSH default port)

If it's a cloud server, they give the port. If it is not a cloud server, the port is: (SSH default port);

----------------------------------Network Connection mode: Network address translation (NAT)-----------------------------------

Network connection mode is: Network address translation (NAT), so-called Class A address (10. IP address)

Note: A-class address, remote machine is not directly accessible, requires port forwarding settings (VMWare virtual machine is no problem)

The following are the settings for VM VirtualBox virtual machines.

Host IP: IP address of the current operating system, default localhost (can not be filled)

subsystem IP: virtual machine

Forwarding data from the 2222 port of the external operating system (which can be modified via the Sshd_config port) to the 22 port of the subsystem

Next, it is the same as the above operation. There's not much to say here.

------------------------Difficult Issues------------------------

Use VirtualBox error/(ㄒoㄒ)/~~ failed to solve, it is helpless choice VMware virtual machine, there is a solution to the classmate, can help me to solve!!!

Ubuntu Build SSH Connection (connection: Bridge network card, network address translation (NAT))

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.