1、检查ssh是否安装

ps -ef | grep ssh

ubuntu安装openssh-server

2、安装ssh

apt-get install openssh-server

注意:安装过程出现以下错误,说明系统没有更新操作,请执行以下命令:apt-get update

ubuntu安装openssh-server

ubuntu安装openssh-server

继续输入y进行安装

3、查看ssh进程

service ssh start

service ssh stop

service ssh restart

ps -ef | grep ssh

netstat -anltp|grep ssh

 ubuntu安装openssh-server

4、验证ssh登录

ssh 127.0.0.1

ubuntu安装openssh-server

5、Permission denied

vi /etc/ssh/sshd-config

PermitRootLogin prohibit-password 改为PermitRootLogin yes

ubuntu安装openssh-server

ubuntu安装openssh-server

6、登录验证成功

ubuntu安装openssh-server

末完待续

相关文章:

  • 2022-01-01
  • 2021-08-05
  • 2021-06-30
  • 2021-08-07
  • 2022-12-23
  • 2021-05-27
  • 2021-10-24
  • 2022-12-23
猜你喜欢
  • 2021-09-17
  • 2021-11-26
  • 2021-10-04
相关资源
相似解决方案