0
点赞
收藏
分享

微信扫一扫

K8S简介

墨春 2023-08-04 阅读 61

原因:服务器安装完开源麒麟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

其它保持默认就好,如

举报

相关推荐

0 条评论