当前位置:   article > 正文

ubuntu未开启ssh_ubuntu 缺少ssh服务

ubuntu 缺少ssh服务

安装netstat  sudo apt install net-tools

2)netstat -ntlp | grep 22  查看22端口是否打开

3)sudo apt install aptitude

4)aptitude search ssh-server  查看ssh-server是否安装

P v是未安装  i是安装

  1. sudo apt install openssh-server
  2. Aptitude search ssh-server

  1. ssh -V 查看ssh版本   sudo ps -e | grep ssh
  2. Sudo service ssh start
  3. Securitycrt 连接ubuntu 报错

No compatible key exchange method. The server supports these methods: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256

解决办法,在/etc/ssh/sshd_config 中第118行增加

KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小惠珠哦/article/detail/788552
推荐阅读
相关标签
  

闽ICP备14008679号