ssh - How to determine what ports X is listening on? -
my use case running nx on ssh , local proxy connects remote host via tunneling. because it's tunneled, tell nx connect localhost:port. problem need perform x authentication , if hit local x server accident instead of remote one, authentication error.
how can determine port local x server listening on can avoid when setting tunnel?
my current workaround avoid tunneling local port has application listening on it.
it's screen number + 6000. example, if $display
:5
port number 6005
Comments
Post a Comment