How to control the ubuntu system in win10 through ssh

I wrote an article "2019-09-15-How to open the ubuntu system in win10" earlier, and some students asked if I could remotely control this ubuntu via ssh. Although it is easy to open a ubuntu window on win10, you can also open multiple windows to achieve multiple terminals, but if you can control ubuntu through ssh, you can open multiple terminals more conveniently, or you can just use this ubuntu as one It is indeed a requirement to use a server in a linux environment. Today, I will write an introduction to the realization of this requirement.

1. Install ssh server

The ubuntu18.04 version is installed by default, and this version comes with ssh service by default.

Check whether the ssh service is installed:

ls /etc/ssh/sshd_config

If the file exists, it is already installed. If it does not exist, execute the following command to install:

sudo apt-get install openssh-serve

2. Start ssh server

Execute the following command to check whether the ssh server has been started.

ps -aux | grep ssh

If there is the following line /usr/sbin/sshd, it means that the ssh server has been started.

efonfighting@DESKTOP-ARKC8D1:~$ ps -aux | grep sshd
root        640.00.019464800?        Ss   01:030:00/usr/sbin/sshd
efonfig+680.00.0148041204 tty1     S    01:040:00 grep --color=auto sshd

If only the following one is printed, it means it is not started.

efonfighting@DESKTOP-ARKC8D1:~$ ps -aux | grep sshd
efonfig+430.00.0148041204 tty1     S    01:010:00 grep --color=auto sshd

Find "Global Options" → "General" → "Configuration Folder", create a new FireWalls folder under this folder, and create a blank file without .ini in the FireWalls folder.

At this time, you need to execute the following command to start the ssh server:

sudo service ssh start

After execution, a firewall problem will be prompted, just click Allow. At this time, our ssh server has been successful.

  1. Access ubuntu in win10 through ssh

At this time, we enter ifconfig and ipconfig in the ubuntu window and the windows cmd window respectively to check the IP address.

This is if we want to access the built-in ubuntu of win10 locally, we can directly access 127.0.0.1 through the user name and password, instead of manually opening an ubuntu window. It's really convenient.

Recommended Posts

How to control the ubuntu system in win10 through ssh
How to open the ubuntu system in win10
How to use dpkg command in Ubuntu system
How to configure /var/log/messages in Ubuntu system log
How to modify time zone and time in ubuntu system
How to install Helm in Ubuntu
How to use hanlp in ubuntu
How to install mysql in Ubuntu 14.04
How to install mysql in Ubuntu 14.04
How to extend the root directory of LVM under Ubuntu system
How to fix the problem of missing system settings on Ubuntu 14.04
How to add swap partition in Ubuntu
How to easily compile openJDK in Ubuntu
How to write win programs in python
How to install cuda10.1 driver in Ubuntu
How to add users to Sudoers in Ubuntu
How to delete redundant kernels in Ubuntu
How to delete redundant kernels in Ubuntu
How to install ROS Noetic in Ubuntu20.04
How to set static IP in ubuntu14.04
How to modify software source in Ubuntu 7.10
How to open root account in Ubuntu20.04
How to modify the hostname on Ubuntu 20.04
How to hide applications in Ubuntu Dash?
How to make the ubuntu virtual machine in vmware display in full screen
How to use the round function in python
How to modify time zone and time in ubuntu
How to configure TensorFlow use environment in Ubuntu
How to use the zip function in Python
How to install python in ubuntu server environment
How to use the format function in python
How to enter python through the command line
[Practice] How to install python3.6 on Ubuntu system
How to install the downloaded module in python
Introduction to the use of Hanlp in ubuntu
How to run the parsing server on Ubuntu 14.04
How to install Linux CentOS 7.7 system through VMware
How to check the installed JDK on Ubuntu
How to install the latest MySQL on Ubuntu 18.04
How to upgrade to Ubuntu 20.04
How to upgrade to Ubuntu 20.04
How to add the gzip module to Nginx on Ubuntu 14.04
How to turn the language of Ubuntu into Chinese? ?
The difference between CentOS and Ubuntu in Linux system
How to view detailed network routing table in Ubuntu
How to understand the introduction of packages in Python
How to use Putty to log in to ubuntu installed in VirtualBox
Example of how to modify ip address in Ubuntu20.04
How to install theano and keras on ubuntu system
How to create a Python virtual environment in Ubuntu 14.04
How to repair a damaged Ubuntu system without reinstalling
Teach you how to install Ubuntu system enhancement tools
How to create LVM for XFS file system under Ubuntu
Mac uses vnc to remotely log in to the ubuntu16.04 desktop
How to find the area of a circle in python
How to set or modify the time zone on Ubuntu 20.04
Detailed steps to automatically set the line number in ubuntu16.04
How to install memcache and start it in ubuntu environment
How to configure NTP to join the NTP pool project in CentOS
How to set or modify the time zone on Ubuntu 20.04
How to compile and install PHP and Nginx in Ubuntu environment