-
Notifications
You must be signed in to change notification settings - Fork 17
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
incorrect ports in ssh connection to docker container #654
Comments
I cannot reproduce the issue with the connection setup. I do see the delay to return focus though |
Also can't reproduce port mismatch inside a VirtualBox VM and on bare metal Linux. |
After some debugging, it turns out the delay in exiting the application is caused by the mina layer used by SSHD. The SSHD implementation can use different communication layers: standard java sockets, MINA, or Netty. To select an implementation you can use different dependencies:
We were using the Switching to |
For reference Almost seems like we are supposed to explicitly shut down something which we forget? |
Turns out we were missing a |
On https://github.com/apache/mina-sshd/blob/master/docs/dependencies.md the Looks like |
did some more digging into the connection error thing.
Then
works as normal. Next, I copied files from
|
I had some trouble with creating an ssh connection to a docker container while preparing materials for a xenon-cli v3 based tutorial, which in turn was based on the earlier xenon-cli v2 tutorial. Here are some details of my setup:
I started the docker slurm container with
as per the tutorial text. I tried to connect to it with:
which worked as normal.
But then (slight digression from the tutorial text, probably needed as a result of the xenon 2 -> 3 upgrade; location now includes the schema part)
I think I've tracked down the place where things go wrong:
xenon/src/main/java/nl/esciencecenter/xenon/adaptors/shared/ssh/SSHUtil.java
Line 386 in a577b12
Even though we give it port
10022
, somehow inside of the.connect()
it uses22
and then it fails (at least at some point I got an error message from inside.connect()
that said something likeconnection id = xenon@localhost:22)
.Anyway, restarting the docker container with
and then
gives the expected response:
I'd be interested to hear if this is indeed a bug. Could be I'm just doing something wrong.
Sidenote: I expect we are missing a session.close() or something, because it takes 1 minute or so to return focus to the user after the answer is printed in the terminal.
The text was updated successfully, but these errors were encountered: