SSH_Unable to negotiate with 192.168.1.152 port 22: nomatching host host key type found. Their offer:ssh-dss

操作环境:Kali Linux

终端远程登录ssh时,提示如下错误:

Unable to negotiate with 192.168.1.152 port 22: nomatching host host key type found. Their offer:ssh-dss

由提示得知,ssh不能远程登录的原因为:没有找到相关的主机密钥类型。

1、确实是主机密钥类型不符合

2、不存在相关主机密钥类型

生成ssh_key

ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key

重启ssh之后远程,问题依然存在

确认密钥已存在......

网络搜索中......

指定主机key算法(最后解决方案):

1、命令中加参数

ssh -o HostKeyAlgorithms=+ssh-dss [email protected]

2、在~/.ssh目录下添加config  

vi config

  在config中写入以下code:

Host *
    HostKeyAlgorithms +ssh-dss

3、重启ssh

service ssh restart

  

Login success !!!

原文地址:https://www.cnblogs.com/VkeLixt/p/9978997.html

时间: 2024-10-09 03:52:49

SSH_Unable to negotiate with 192.168.1.152 port 22: nomatching host host key type found. Their offer:ssh-dss的相关文章

用xshell5连接虚拟机,显示Could not connect to '192.168.3.128' (port 22): Connection failed.

原因:虚拟机上没有安装或者没有启动ssh 解决: 1.安装sshserver sudo apt-get install openssh-server 2.启动ssh服务 sudo service ssh status 补充: (1)启动,停止和重启openssh-server的命令如下: /etc/init.d/ssh start /etc/init.d/ssh stop /etc/init.d/ssh restart (2)设置开机自启动 打开/etc/rc.local文件,在exit 0前面

Xshell 链接 Could not connect to '192.168.80.129' (port 22): Connection failed

在使用Xshell链接虚拟机VM里面的Linux的时候.链接失败,报 Could not connect to '192.168.80.129' (port 22): Connection failed 解决步骤: 1.重启VM.Linux.Xshell 2.重启未解决的话.本地命令行 ping Linux的IP C:\Users\Administrator>ping 192.168.80.129 3.本地命令行 ping 通的话,转第5步. C:\Users\Administrator>pi

全网最详细的启动zkfc进程时,出现INFO zookeeper.ClientCnxn: Opening socket connection to server***/192.168.80.151:2181. Will not attempt to authenticate using SASL (unknown error)解决办法(图文详解)

不多说,直接上干货! at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) 18/06/16 17:57:01 INFO zookeeper.ClientCnxn: Opening socket connection to server

ssh登录 The authenticity of host 192.168.0.xxx can't be established. 的问题

scp免密码登录:Linux基础 - scp免密码登陆进行远程文件同步 执行scp一直是OK的,某天在本地生成了公钥私钥后,scp到某个IP报以下错误 The authenticity of host '192.168.233.137 (192.168.233.137)' can't be established. ECDSA key fingerprint is SHA256:EsqTfeCJ34DnGV66REuRRPhoFwaLuee5wxFgEAZ8b9k. Are you sure y

请问192.168.10.100/25与192.168.10.200/25是否在同一个网域内

鸟哥的一个题 192.168.10.100/25 , ip是class C,Net_ID 占24位,题目要求为25,即Host_ID借1给Net_ID 192      |      168     |     10       |      100 11000000   10100000   00001010  01100100 下面开始计算Network 与boardcast 11000000   10100000   0000101 0|0 | 1100100 --------------

格式化namenode时 报错 No Route to Host from node1/192.168.1.111 to node3:8485 failed on socket timeout exception: java.net.NoRouteToHostException: No route to host

17/08/03 16:06:05 FATAL namenode.NameNode: Failed to start namenode. org.apache.hadoop.hdfs.qjournal.client.QuorumException: Unable to check if JNs are ready for formatting. 1 successful responses: 192.168.1.114:8485: false 1 exceptions thrown: 192.1

写一个脚本,实现判断192.168.3.0/24网络里,当前在线的IP有哪些。

条件如下: 1.通过ping命令测试192.168.3.1到192.168.3.5之间的所有主机是否在线,    如果在线,就显示"ip is up.",其中的IP要换为真正的IP地址,且以绿色显示:    如果不在线,就显示"ip is down.",其中的IP要换为真正的IP地址,且以红色显示: 要求:分别使用while,until和for(两种形式)循环实现. 方法一:用while实现. #!/bin/bash IP=1 while [ $IP -le 5 ]

ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL

当使用Mysql帐号远程登陆的时候,出现类似如下错误:ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL 解决办法: 1. 改表法(可能是你的帐号不允许从远程登陆,只能在localhost.这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost&

Linux中mysql进入命令行报错:MYSQL ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.99.192' (111)

场景:在Linux中安装mysql01和mysql02,通过VIP虚出一个VIP=192.168.99.192,mysql01为主ip为192.168.99.153,mysql02为备机ip为192.168.99.154 此时VIP在mysql01上通过 mysql01上连接VIP :mysql -h 192.168.99.192 -P 3306   结果是可以正常进入mysql命令行: 通过mysql02上远程连接VIP 会在界面上报错:mysql error 2003(HY000):Can'