debian10中的ssh常用设置
ssh是远程管理linux的重要方式,本文讨论ssh在debian10中的设置。
安装
服务器
apt -y install openssh-server
systemctl restart ssh
客户端
apt -y install openssh-client
配置
免密登录(git需复制~/.ssh/id_rsa.pub内容到git设置)
ssh-keygen
ssh-copy-id username@remote-server.org
google配置客户端登录
sudo -i
vi /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
service sshd restart
passwd root