Operating system login

linux:

Method 1: Command line interface ssh
1, Redhat
2, Ubuntu

Method 2: Image desktop
Ubuntu :

Install ssh??
yum install openssh-server
vi /etc/ssh/sshd.conf

sudo service sshd start

Check whether the sshd service has been opened ps -e | grep sshd
netstat -an | grep 22? Check whether the port 22? is listening

In order to avoid having to manually start CentOS every time Turn on the sshd service, you can add the sshd service to the self-starting list, enter systemctl enable sshd.service

Permanently disable selinux (requires system restart):
vi /etc/selinux/config
SELINUX=enforcing is changed to SELINUX=disabled

Configuration method:
Under Ubuntu operating system:
Download the installation package from the realvnc official website
Download the deb package: https://www.realvnc. com/download/file/vnc.files/VNC-Server-6.3.2-Linux-x64.deb

Double-click to install.
Add key via command
sudo vnclicense -add WHJRK-UXY7V-Q34M9-CZU8L-8KGFA

Start service:
sudo service vncserver- x11-serviced start

After startup, there will be an icon in the upper right corner of the desktop

Use RealVNC’s VNCview connection in the windows operating system to log in remotely

If there is an error:
Maybe 5900 port is occupied, here is a new port

VNC icon–>Options–>Conection port is changed to 5901

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5391 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.