Open source Kylin Linux system openKylin-1.0 kernel is debian Install openssh-server and configure root remote login

Reason: After installing the open source Kylin Linux system openKylin-1.0 on the server, it is annoying to change the keyboard and mouse when using it.
Goal: Install openssh-server on Debian , install Xshell on the original system, and configure root remote login.
Record it for your reference!

#examine

apt search openssh-server

If installed it will show

openssh-server/now 1:8.4p1-5+deb11u1 amd64 [installed,local]
  secure shell (SSH) server, for secure access from remote machine

If a bunch of associated library packages are displayed, it means that they are not installed

#Install

apt install openssh-server

Personal habits do not add "-y", look at what is installed

# configuration

cd /etc/ssh
cp sshd_config sshd_config.bak
vi sshd_config

Make a backup of the original before changing the configuration file

key parameters

Port 22
PermitRootLogin yes
PasswordAuthentication yes

Others keep the default, such as

Guess you like

Origin blog.csdn.net/qq_33468857/article/details/132059630