【笔记】SSH安装笔记

前言

SSH安装笔记

安装openssh

CentOS

1
yum install openssh-server

Debian

1
apt install openssh-server

修改配置

去除端口号注释

/etc/ssh/sshd_config
1
Port 22

去除监听地址注释

/etc/ssh/sshd_config
1
2
ListenAddress 0.0.0.0
ListenAddress ::

允许远程登录

/etc/ssh/sshd_config
1
PermitRootLogin yes

允许使用密码验证身份

/etc/ssh/sshd_config
1
PasswordAuthentication yes

完成

参考文献

CSDN——dh2580
博客园——殷大侠
CSDN——fandroid
CSDN——Tz.