Use ssh to connect remotely in a virtual machine running Linux

[Baidu Encyclopedia] SSH is the abbreviation of Secure Shell, developed by the IETF web team (Network Working Group); SSH is built on the basis of the application layer security protocol. SSH is a more reliable protocol designed to provide security for remote login session, and other network services. SSH protocol can effectively prevent the use of remote management in the process of information disclosure issue. SSH was originally a program on UNIX systems, and later quickly spread to other operating platforms. SSH when used properly can make up for network vulnerabilities. SSH client for multiple platforms. Almost all UNIX platforms - including HP-UX, Linux, AIX, Solaris, Digital UNIX, Irix, and other platforms, can run SSH.

A, V-Box network configuration settings

The opening is provided wherein a NIC card configured to bridge in the v-box.
Here Insert Picture Description
After running Ubuntu, open a terminal.

Second, download ssh

In a terminal

#sudo apt-get install ssh

Or using the following code:

#apt-get install openssh-client

Third, run ssh

At the terminal to use the following:

#service ssh start   ---启动ssh
#service ssh stop   ---终止ssh
#service ssh restart   ---重启ssh

In the pop-authentication interface interface password.
Here Insert Picture Description
Then you can use the following code to see whether to start ssh

#service ssh status

Here Insert Picture DescriptionWhen activated, the display behind Active: active (running), if ssh off, is shown as: inactive (dead). (As)

Fourth, determine their own and each other's IP address

use

#ifconfig

Determine its own IP address (find the beginning with 192.168)
If there

#The program 'ifconfig' is currently not installed. You can install it by typing:
sudo apt install net-tools

The first input

#sudo apt install net-tools

reuse

#ifconfig

Here Insert Picture Description

Fifth, remote connection

My user, for example, user name: ludonghengsb Here Insert Picture Descriptionin the case of start ssh, use:

ssh用户名@IP

Figure:
Here Insert Picture Description
After the connection is required to verify the password each other's accounts, then you can use Linux commands to control the other side of the system (create files, directories, etc.)

Reference: https://blog.csdn.net/csdnall/article/details/80888038

Guess you like

Origin www.cnblogs.com/chw123/p/12030319.html