Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESXi作为客户端连接服务端OpenWRT:Connection timed out #1

Open
Nothend opened this issue Feb 14, 2022 · 4 comments
Open

ESXi作为客户端连接服务端OpenWRT:Connection timed out #1

Nothend opened this issue Feb 14, 2022 · 4 comments

Comments

@Nothend
Copy link

Nothend commented Feb 14, 2022

大佬你好:按照你的教程,我在esxi 中使用ssh-keygen 生成密钥对,我是使用OpenWRT作为服务端,在luci界面把公钥放到openwrt 里面,会在路径“/etc/dropbear”下面,自动生成authorized_keys。然后在esxi 中使用ssh [email protected] 进行ssh 登陆,一直提示连接超时
image
image

@chenxiccc
Copy link
Owner

我也是一样的方法,在luci中添加esxi生成的id_rsa.pub公钥到dropbear的authorized_keys中。
刚刚又试了一下,没问题。
你可能需要检查一下公钥是否复制完全,也可以试着在luci中删除其他公钥,先只保留esxi的试试。
image
image

@Nothend
Copy link
Author

Nothend commented Feb 17, 2022

我也是一样的方法,在luci中添加esxi生成的id_rsa.pub公钥到dropbear的authorized_keys中。
刚刚又试了一下,没问题。
你可能需要检查一下公钥是否复制完全,也可以试着在luci中删除其他公钥,先只保留esxi的试试。
image
image

多谢了,我找到原因了,要在esxi 中把SSH客户端这个服务启动

@Saco93
Copy link

Saco93 commented Mar 15, 2022

你好,我这边也遇到了从ESXi发起SSH到OpenWRT超时的情况,ssh -vvv的日志如下(192.168.93.1是我的OpenWRT):

[root@localhost:~] ssh -vvv [email protected]
OpenSSH_8.6p1, OpenSSL 1.0.2za-fips  24 Aug 2021
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolve_canonicalize: hostname 192.168.93.1 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug3: ssh_connect_direct: entering
debug1: Connecting to 192.168.93.1 [192.168.93.1] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: connect to address 192.168.93.1 port 22: Connection timed out
ssh: connect to host 192.168.93.1 port 22: Connection timed out

我想请教一下,你说的启动SSH客户端服务,具体要怎么操作?

@Saco93
Copy link

Saco93 commented Mar 15, 2022

我发现如何操作了,在这里写一下,方便如果有其他新手遇到了类似的情况。

只需要在网络设置当中开启就可以了
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants