日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > linux >内容正文

linux

oracle ssh测试不通过,ssh 连接不上 oracle linux 7.2

發(fā)布時(shí)間:2024/4/17 linux 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle ssh测试不通过,ssh 连接不上 oracle linux 7.2 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

問題描述

oralce linux 可以ssh到其他設(shè)備,可是其他設(shè)備ssh不上oracle linux

ssh username@hostip -v

OpenSSH_6.6.1,OpenSSL 1.0.1e-fips 11 Feb 2013

debug1: Reading configuration data /etc/ssh/ssh_config

debug1: /etc/ssh/ssh_config line 56: Applying options for *

debug1: Connecting to 192.168.100.27 [192.168.100.27] port 2222.

debug1: Connection established.

debug1: permanently_set_uid: 0/0

debug1: identity file /root/.ssh/id_rsa type -1

debug1: identity file /root/.ssh/id_rsa-cert type -1

debug1: identity file /root/.ssh/id_dsa type -1

debug1: identity file /root/.ssh/id_dsa-cert type -1

debug1: identity file /root/.ssh/id_ecdsa type -1

debug1: identity file /root/.ssh/id_ecdsa-cert type -1

debug1: identity file /root/.ssh/id_ed25519 type -1

debug1: identity file /root/.ssh/id_ed25519-cert type -1

debug1: Enabling compatibility mode for protocol 2.0

debug1: Local version string SSH-2.0-OpenSSH_6.6.1

debug1: Remote protocol version 2.0,remote software version OpenSSH_6.6.1

debug1: match: OpenSSH_6.6.1 pat OpenSSH_6.6.1* compat 0x04000000

debug1: SSH2_MSG_KEXINIT sent

Read from socket Failed: Connection reset by peer

原因

linux oracle /etc/ssh 目錄下默認(rèn)沒有 ssh_host_rsa_key,ssh_host_ecdsa_key,ssh_host_ed25519_key

這三個(gè)公私鑰文件

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

ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key

ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key

systemctl restart sshd

提示輸入密碼時(shí)直接按 enter 鍵就行了,也可以在 ssh-keygen 中使用 -P選項(xiàng) 指定使用什么密碼

總結(jié)

以上是生活随笔為你收集整理的oracle ssh测试不通过,ssh 连接不上 oracle linux 7.2的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。