11.2-ssh-访问控制

rpm -q openssh-server
systemctl status sshd

man systemctl
systemctl --help

start stop relad restart disable enable

cd /etc/ssh/
ls
ssh_config 客户端配置
sshd_config 服务端配置文件

vim sshd_config
PermitRootLogin yes 【anoLis装好,默认直接可以远程】
PasswordAuthentication yes 

ssh root@127.0.0.1 

# ssh配置免密
ssh-keygen 
# 一路回车
# 钥匙给别人远程。

ssh-copy-id root@127.0.0.1
ssh root@127.0.0.1

# 传输文件
scp h.txt root@127.0.0.1:/mnt


上一节:11.1-systemctl-管理

下一节:11.3-时间服务