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

Error: connect EHOSTUNREACH 192.168.21.34:22 - Local (192.168.21.58:49182) #1428

Open
15738039217 opened this issue Nov 22, 2024 · 7 comments
Labels

Comments

@15738039217
Copy link

Error: connect EHOSTUNREACH 192.168.21.34:22 - Local (192.168.21.58:49182)
at internalConnect (node:net:953:16)
at defaultTriggerAsyncIdScope (node:internal/async_hooks:465:18)
at node:net:1044:9
at processTicksAndRejections (node:internal/process/task_queues:78:11) {
errno: -65,
code: 'EHOSTUNREACH',
syscall: 'connect',
address: '192.168.21.34',
port: 22,
level: 'client-socket'
}

@15738039217
Copy link
Author

What's wrong with that

@15738039217
Copy link
Author

var Client = require('ssh2').Client
var connect = new Client()

@15738039217
Copy link
Author

"ssh2": {
  "version": "1.11.0",
  "integrity": "sha512-nfg0wZWGSsfUe/IBJkXVll3PEZ//YH2guww+mP88gTpuSU4FtZN7zu9JoeTGOyCNx2dTDtT9fOpWwlzyj4uOOw==",
  "dev": true,
  "requires": {
    "asn1": "^0.2.4",
    "bcrypt-pbkdf": "^1.0.2",
    "cpu-features": "~0.0.4",
    "nan": "^2.16.0"
  }
},

@mscdex
Copy link
Owner

mscdex commented Nov 22, 2024

EHOSTUNREACH means your OS could not find a route to that host. It is not an ssh2-specific error.

@15738039217
Copy link
Author

Is this about the system?

@15738039217
Copy link
Author

系统 Apple M4

@mscdex
Copy link
Owner

mscdex commented Nov 25, 2024

It's an OS/networking issue, not an ssh2 issue.

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

No branches or pull requests

2 participants