Skip to content

How to disable ssh on Raspberry Pi when xrdp connection established #2286

Closed Answered by matt335672
bhaijiyunus asked this question in Q&A
Discussion options

You must be logged in to vote

I can think of a couple of ways you could poll for this.

  1. Look at the output of loginctl which should tell you when a session is active.
  2. Look for more than one xrdp-sesman process.
  3. Look for more than one xrdp process. This is different from 2) in that you will have two xrdp-sesman processes for the whole lifetime of the session, but only two xrdp processes when you are connected to the session. It depends on exactly what you want.
  4. Check the output of ss -o state established '( sport = :3389 )' for a live connection to xrdp.

Are any of those any good?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bhaijiyunus
Comment options

Answer selected by bhaijiyunus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2285 on June 10, 2022 10:00.