caoyang

linux系统的ssh服务开启方法

 

操作方法:

1、编辑sshd_config文件

root@linux:~# vi /etc/ssh/sshd_config

2、检查如下配置项:

PasswordAuthentication yes

PermitRootLogin yes

3、启动ssh服务

root@linux:~# /etc/init.d/ssh start
[ ok ] Starting OpenBSD Secure Shell server: sshd.

或者:

root@linux:~# service ssh start
[ ok ] Starting OpenBSD Secure Shell server: sshd.

4、验证ssh服务状态,使用putty等客户端连接Kali-Linux

root@linux:~# /etc/init.d/ssh status
[ ok ] sshd is running.
root@linux:~# 
root@linux:~# service ssh status
[ ok ] sshd is running.

分类:

技术点:

相关文章:

  • 2021-12-25
  • 2021-11-29
  • 2021-08-11
  • 2021-12-19
猜你喜欢
  • 2021-06-19
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-11-23
相关资源
相似解决方案