You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by GitBox <gi...@apache.org> on 2022/12/22 03:41:35 UTC
[GitHub] [mina-sshd] thevipwan opened a new issue, #298: Server side heartbeat not working
thevipwan opened a new issue, #298:
URL: https://github.com/apache/mina-sshd/issues/298
### Version
master
### Bug description
dependency:
```
<dependency>
<groupId>org.apache.sshd</groupId>
<artifactId>sshd-core</artifactId>
<version>2.7.0</version>
</dependency>
```
Code:
```
SshServer sshd = SshServer.setUpDefaultServer();
sshd.setPort(3333);
sshd.setShellFactory(InteractiveProcessShellFactory.INSTANCE);
sshd.setSessionHeartbeat(SessionHeartbeatController.HeartbeatType.NONE, Duration.ofSeconds(5));
sshd.setKeyPairProvider(new ClassLoadableResourceKeyPairProvider(getClass().getClassLoader(), "rsa.key"));
sshd.setPasswordAuthenticator((username, password, session) -> username.equals(password));
sshd.start();
log.info("SSHD server started");
```
ssh Client:
```
user/passwd = test
ssh test@127.0.0.1 -p3333
```
### Actual behavior
read [Server Setup Manual](https://github.com/apache/mina-sshd/blob/master/docs/server-setup.md) last section
I with my SSHD has ServerSide heartbeat,But setSessionHeartbeat API didn't working, ssh session didn't get any interval heartbeat
### Expected behavior
SSHD automatic send heartbeat message for each ssh session
### Relevant log output
_No response_
### Other information
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
[GitHub] [mina-sshd] tomaswolf closed issue #298: Server side heartbeat not working
Posted by GitBox <gi...@apache.org>.
tomaswolf closed issue #298: Server side heartbeat not working
URL: https://github.com/apache/mina-sshd/issues/298
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
[GitHub] [mina-sshd] tomaswolf commented on issue #298: Server side heartbeat not working
Posted by GitBox <gi...@apache.org>.
tomaswolf commented on issue #298:
URL: https://github.com/apache/mina-sshd/issues/298#issuecomment-1363696280
1. I see that you are using version 2.7.0. Please try with 2.9.2, or with the master version.
2. How do you verify whether the client gets heartbeat messages?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
[GitHub] [mina-sshd] tomaswolf closed issue #298: Server side heartbeat not working
Posted by GitBox <gi...@apache.org>.
tomaswolf closed issue #298: Server side heartbeat not working
URL: https://github.com/apache/mina-sshd/issues/298
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
[GitHub] [mina-sshd] thevipwan commented on issue #298: Server side heartbeat not working
Posted by GitBox <gi...@apache.org>.
thevipwan commented on issue #298:
URL: https://github.com/apache/mina-sshd/issues/298#issuecomment-1364823374
switch to version 2.9.2 but still not work;I use debug log and Wireshark(Capture port traffic) monitor heartbeat,I'm so confused about it, can you give me correct example code?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
[GitHub] [mina-sshd] tomaswolf commented on issue #298: Server side heartbeat not working
Posted by GitBox <gi...@apache.org>.
tomaswolf commented on issue #298:
URL: https://github.com/apache/mina-sshd/issues/298#issuecomment-1362479575
Why did you expect any heartbeats to be sent when you set heartbeat type `NONE`?
Try `SessionHeartbeatController.HeartbeatType.IGNORE`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
[GitHub] [mina-sshd] tomaswolf commented on issue #298: Server side heartbeat not working
Posted by GitBox <gi...@apache.org>.
tomaswolf commented on issue #298:
URL: https://github.com/apache/mina-sshd/issues/298#issuecomment-1365428807
Indeed; you're right. It looks like this never worked, and was not caught because there was no test for server-side heartbeats.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org
[GitHub] [mina-sshd] thevipwan commented on issue #298: Server side heartbeat not working
Posted by GitBox <gi...@apache.org>.
thevipwan commented on issue #298:
URL: https://github.com/apache/mina-sshd/issues/298#issuecomment-1363561355
> SessionHeartbeatController.HeartbeatType.IGNORE
Try this, but still can't get any heartbeats
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org