Ubuntu20.04 remote connection

Recently, the computer graphics card driver in the laboratory is always wrong. After investigation, it is found that the kernel version of linux will change after the automatic update, resulting in the failure of the graphics card to connect. In order to solve this problem, after reinstalling the system, I directly chose to close the update, so that If so, this problem can be temporarily avoided, as shown in the following figure:
insert image description here

In addition, if the system is reinstalled, the server will not be able to connect. This is because the public key has changed after the reinstallation. First, you need to install the ssh service on the server and open the firewall.

sudo apt-get install openssh-server
sudo systemctl status ssh
sudo ufw allow ssh

The key needs to be updated locally, by the following command

ssh-keygen -R 你要访问的IP地址
ssh -l 用户名 ip地址即可连接

At this time, the sftp connection will also fail. You only need to use the following command to connect

sftp://用户名@ip地址

This will prompt you to re-enter your password to connect, and you're done

If you want to use the GUI for remote operation, then you can connect by using the sharing service, just modify a configuration file and open the sharing.

sudo apt install dconf-editor -y 
dconf write /org/gnome/desktop/remote-access/require-encryption false

Guess you like

Origin blog.csdn.net/ECHOSON/article/details/121610179