Remote terminal, connect via SSH
SSH (Secure Shell Protocol) is a security protocol based on the application layer. SSH is a more reliable protocol designed to provide security for $\underline{remote login sessions and other network services}$. Using the SSH protocol can effectively prevent information leakage during remote management.
win10 connect ubuntu via ssh
Install openssh on ubuntu
sudo apt-get install openssh-server
If there is a
(yes/on)?
at the end, it means successssh localhost
Check the ip address of ubuntu. Open a terminal and enter:
ifconfig
Install Putty on win10
To connect or log into ubuntu via ssh, we need a ssh client for Windows. Putty is a free and easy way to remotely log into ubuntu and other Linux servers from Windows using ssh.
Download: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest. html
We click putty.exe to download
Double-click to run the downloaded putty.exe, enter the ip address, the default port is 22, and click open.
Then we need to enter the username and password of ubuntu, then we are connected successfully, you can operate ubuntu on windows through the relevant commands
ubuntu connect to Ubuntu via ssh
Install openssh on ubuntu
sudo apt-get install openssh-server
Whether the test is successful, if there is a
(yes/on)?
at the end, it means successssh localhost
View the ip address to be remote, open a terminal, enter
ifconfig
Connect via ssh
ssh handsfree@192.168.0.114
Here handsfree in handsfree@192.168.0.114 is the username of the computer, and 192.168.0.114 is the ip address of the machine. And when you operate, you need to replace it according to your own situation.
After entering yes and press Enter, then enter the password of the computer to be connected, and then the connection is successful
In order to make it easier to distinguish, I used a computer named ranmo-pc to remotely connect to a computer named handsfree-pc
Connect to the computer you want to operate via ssh and then run commands in the terminal to control the remote computer
If you want to log out of the remote computer, you can just turn it off by typing
exit
This brings us back to the original host terminal.