ssh无法连接虚拟机
apt-get 报错
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
如果还无法解决,报错:E: dpkg was interrupted, you must manually run ‘sudo dpkg --configure -a’ to correct the problem.
再输入: sudo dpkg --configure -a
如果还无法解决 重启。
使用sudo ps -e|grep ssh命令查看ssh服务是否正常
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cb
MACs hmac-md5,hmac-sha1,umac-64@openssh.com
Ciphers 3des-cbc,aes128-cbc,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
Key exchange failed.
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
需要下载最新的SecureCRT
参考:
SecureCRT8.7安装和注册教程
SecureCRT8.1+SecureCRT_keygen完成注册
The remote system refused the connection.
链接: https://pan.baidu.com/s/1VmJeCji20d2VEn_rUMpj2A 提取码: xk9w