Linux(Kali)开启SSH服务

1、修改配置:

vim /etc/ssh/sshd_config #进入

(**关于配置文件详解:https://www.cnblogs.com/shaoerwei/articles/7594879.html

permitrootlogin,PasswordAuthentication两项的注释符去掉,后面改为yes

wq保存退出

 

2、重启服务:

/etc/init.d/ssh restart

 

3、添加开机启动:

update-rc.d ssh enable

(**关于update-rc.d命令详解:https://blog.csdn.net/freeking101/article/details/72236236

  

posted @ 2019-07-30 10:29  S-JULY  阅读(89)  评论(0)    收藏  举报