bflw

Linux安装ssh

  sudo apt-get install openssh-server
使用命令报错,
E:软件包openssh-server还没有可供安装的候选者

解决方法:
apt-get
资源包更新

  apt-get update

只更新apt
这里就可以了

检查ssh服务开启状态
  ps -s | grep ssh

 

ssh的指令

启动ssh服务:

  #sudo /etc/init.d/ssh start

停止ssh服务:

  #sudo /etc/init.d/ssh stop

重启ssh服务:

  #sudo /etc/init.d/ssh restart

分类:

技术点:

相关文章: