linux开启ssh
kali
vim /etc/ssh/sshd_config
#修改
#PermitRootLogin prohibit-password 改为 PermitRootLogin yes
#PasswordAuthentication yes 改为 PasswordAuthentication yes
#Esc->:->wq保存
#启动
/etc/init.d/ssh start
or
sudo service ssh start
#开机启动
update-rc.d ssh enable
ubuntu
sudo apt-get install openssh-server
#启动
/etc/init.d/ssh start