1)安装ssh命令:
sudo apt install -y openssh-server //kali 或者其他系统
sudo yum install -y openssh-server //centos 系统
2)开启ssh服务,一般用户已可登录
sudo systemctl start ssh.service
3)修改配置文件:vim /etc/ssh/sshd_config 添加或者修改下列
1、PermitRootLogin yes
2、PasswordAuthentication yes