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

sshnpd does not show the end of the session when using ssh process call #295

Closed
Tracked by #135
cconstab opened this issue Jul 30, 2023 · 4 comments
Closed
Tracked by #135
Assignees
Labels
bug Something isn't working

Comments

@cconstab
Copy link
Member

Describe the bug

The title captures the problem. Only see the start of sessions and not the end of sessions when using sshnpd spawning 'ssh'

E.g log file

sshnpd@iotdevice01:~$ ./sshnpd.sh 
SHOUT|2023-07-30 23:14:29.335254| sshnpd |Starting ssh session using hostSsh (/usr/bin/ssh) from: @cconstab session: 8d6c27d8-9759-44c7-b98c-9c4aa11eceea 
SHOUT|2023-07-30 23:15:37.421877| sshnpd |Starting ssh session using hostSsh (/usr/bin/ssh) from: @cconstab session: 9d485c7b-aa8c-4158-a0f8-49dc70e03039 
SHOUT|2023-07-30 23:16:07.361930| sshnpd |Starting ssh session using hostSsh (/usr/bin/ssh) from: @cconstab session: 8840f59b-f51c-43a2-816e-c5ceeb781828 
SHOUT|2023-07-30 23:17:09.759965| sshnpd |Starting ssh session using hostSsh (/usr/bin/ssh) from: @cconstab session: d231f1e4-635e-48a3-a06a-5be6f1c75c19 
SHOUT|2023-07-30 23:17:25.592904| sshnpd |Starting ssh session using hostSsh (/usr/bin/ssh) from: @cconstab session: 6bfcf141-22ef-4d4b-992b-3abc540fce6d 
SHOUT|2023-07-30 23:17:44.642218| sshnpd |Starting ssh session using hostSsh (/usr/bin/ssh) from: @cconstab session: 9cb668a5-6c20-4b11-949f-8628a1a032d3 
SHOUT|2023-07-30 23:17:56.329361| sshnpd |Starting ssh session using hostSsh (/usr/bin/ssh) from: @cconstab session: 77b8b6b0-36b9-43ab-8068-c8168bbead0e 
SHOUT|2023-07-30 23:18:14.355848| sshnpd |Starting ssh session using hostSsh (/usr/bin/ssh) from: @cconstab session: 6da27b43-6004-41bc-84b5-4db5a8616fc5 

As against using pure-dart

sshnpd@iotdevice01:~$   /home/sshnpd/.local/bin/sshnpd -a @ssh_1 -m @cconstab -d iot_safe --ssh-client pure-dart
SHOUT|2023-07-30 23:35:38.329187| sshnpd |Starting ssh session using pureDart (pure-dart) from: @cconstab session: 98029a04-2fae-4aed-bd54-dbae97943571 
SHOUT|2023-07-30 23:35:48.314135| sshnpd |Starting ssh session using pureDart (pure-dart) from: @cconstab session: 22175ee4-8eba-45ad-8845-1528f26e74c1 
SHOUT|2023-07-30 23:35:53.506025| sshnpd |98029a04-2fae-4aed-bd54-dbae97943571 | ssh session complete 
SHOUT|2023-07-30 23:36:03.489985| sshnpd |22175ee4-8eba-45ad-8845-1528f26e74c1 | ssh session complete 

Steps to reproduce

  1. Run trunk sshnpd
  2. Run trunk sshnp
  3. view log files
  4. run again with pure-dart arg

Expected behavior

log file should detail end/start of session

Screenshots

No response

Smartphones

  • Linux/Mac

Were you using an atApplication when the bug was found?

No response

Additional context

No response

@cconstab cconstab added the bug Something isn't working label Jul 30, 2023
@gkc
Copy link
Contributor

gkc commented Jul 31, 2023

Wasn't able to figure out how to do this. Any ideas @cconstab ?

@cconstab
Copy link
Member Author

Create a list of pids and check to see if they are still active was my best hack

@gkc
Copy link
Contributor

gkc commented Aug 7, 2023

This will be an edge-case only once #218 is complete. Setting as P3

@XavierChanth
Copy link
Member

I think we can close this, since this is legacy functionality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants