开源麒麟Linux系统openKylin-1.0 内核是debian 安装openssh-server及配置root远程登陆

原因:服务器安装完开源麒麟Linux系统openKylin-1.0后,换使用时的键鼠很烦。
目标:Debian安装openssh-server,原系统安装Xshell,并配置实现root远程登录。
记录下并供大家参考!

#检查

apt search openssh-server

如果安装会显示

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

如果显示一堆的关联库包,表示没有安装

#安装

apt install openssh-server

个人习惯不加“-y”,看一下都装了什么

#配置

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

改配置文件前给原装的做个备份

重点参数

Port 22
PermitRootLogin yes
PasswordAuthentication yes

其它保持默认就好,如

猜你喜欢

转载自blog.csdn.net/qq_33468857/article/details/132059630
今日推荐