About ssh Login to Network Equipment Using ganymed-ssh-2

Asked 2 years ago, Updated 2 years ago, 31 views

Nice to meet you.

When you log in with ssh port22123 (IPv4) and then ssh login (IPv6) to the router,

Connection conn2 = new Connection (hostname2,22123);
conn.connect();

In

Causeed by: java.net.UnknownHostException: xxxxx.xx.jp

The error appears.

*The routers are YAMAHA RTX 810 and NECIX2215

You can log in from the command line, but it seems that you cannot connect from the managed-ssh-2 library.Connecting from the managed-ssh-2 library to the treadmill server is fine.
Perhaps the connection in IPv6 has failed.
Could you teach me?

Thank you for your cooperation.

java

2022-09-30 16:39

1 Answers

To isolate whether name resolution is a problem or a network problem (such as a firewall), why don't you try to connect with an IP address instead of a hostname?

Next, if the environment allows it, it's not a way to get much praise from the network, but I'll try cutting the personal file.For example, if you are limiting the destination of each process, this is how you know it.


2022-09-30 16:39

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.