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))