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

  1. Install openssh on ubuntu

    sudo apt-get install openssh-server
    
  2. If there is a (yes/on)? at the end, it means success

    ssh localhost
    
  3. Check the ip address of ubuntu. Open a terminal and enter:

    ifconfig
    

  4. 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

  5. Double-click to run the downloaded putty.exe, enter the ip address, the default port is 22, and click open.

  6. 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

  1. Install openssh on ubuntu

    sudo apt-get install openssh-server
    
  2. Whether the test is successful, if there is a (yes/on)? at the end, it means success

    ssh localhost
    
  3. View the ip address to be remote, open a terminal, enter

    ifconfig
    

  4. 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.

  5. 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.

results matching ""

    No results matching ""