Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-10 Thread Vincent Lefevre
On 2023-05-10 09:28:51 -0400, Greg Wooledge wrote: > On Wed, May 10, 2023 at 03:19:31PM +0200, Vincent Lefevre wrote: > > On 2023-05-10 15:07:17 +0200, Vincent Lefevre wrote: > > > Note: if you play with .ssh/rc, be careful as there is a risk > > > that you may not log in any more with ssh in case

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-10 Thread Greg Wooledge
On Wed, May 10, 2023 at 03:19:31PM +0200, Vincent Lefevre wrote: > On 2023-05-10 15:07:17 +0200, Vincent Lefevre wrote: > > Note: if you play with .ssh/rc, be careful as there is a risk > > that you may not log in any more with ssh in case of mistake > > (I'm wondering whether there is an undocumen

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-10 Thread Vincent Lefevre
On 2023-05-10 15:07:17 +0200, Vincent Lefevre wrote: > Note: if you play with .ssh/rc, be careful as there is a risk > that you may not log in any more with ssh in case of mistake > (I'm wondering whether there is an undocumented way to skip it). For this point, there are solutions there: https

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-10 Thread Vincent Lefevre
On 2023-05-10 14:36:25 +0200, Vincent Lefevre wrote: [...] > zira:~> ssh cventin xterm > Connected to cventin (from 140.77.51.8) > OS: Debian GNU/Linux 12 (bookworm) [x86_64] > DISPLAY: localhost:11.0 > > and xterm is started as expected. FYI, some data, like DISPLAY, are > output by my .ssh/rc sc

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-10 Thread Vincent Lefevre
On 2023-05-09 20:07:26 +0200, zithro wrote: > On 09 May 2023 18:06, Vincent Lefevre wrote: > > On 2023-05-05 15:04:27 +0200, zithro wrote: > > > > > > journalctl after GUI LOGOFF > > > -

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-10 Thread Vincent Lefevre
On 2023-05-09 14:17:14 -0400, Dan Ritter wrote: > zithro wrote: > > On 09 May 2023 17:47, Vincent Lefevre wrote: > > > BTW, you should also try GNU Screen to see if you have the same issue > > > with it (this could help debugging). > > > > Do you mean trying "ssh u@h screen" ? > > Never tried scr

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-10 Thread Vincent Lefevre
On 2023-05-09 19:44:48 +0200, zithro wrote: > On 09 May 2023 17:47, Vincent Lefevre wrote: > > Hi, > > > > On 2023-05-04 21:07:17 +0200, zithro wrote: > > > Here is what happens chronologically : > > > > > > 1. I start various SSH connections to a host, some normal, some with X > > > forwarding,

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-09 Thread Dan Ritter
zithro wrote: > On 09 May 2023 17:47, Vincent Lefevre wrote: > > BTW, you should also try GNU Screen to see if you have the same issue > > with it (this could help debugging). > > Do you mean trying "ssh u@h screen" ? > Never tried screen with GUI apps, does that work ? Not in a useful way. For

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-09 Thread Greg Wooledge
On Tue, May 09, 2023 at 08:07:26PM +0200, zithro wrote: > I use Ctrl-D to close ssh sessions, "~." does not work, I get "bash: command > not found". To use the tilde commands in the ssh client, they have to be at the "beginning of a line", which means you have to press Enter first. Or at least ha

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-09 Thread zithro
On 09 May 2023 18:06, Vincent Lefevre wrote: On 2023-05-05 15:04:27 +0200, zithro wrote: journalctl after GUI LOGOFF [...] May 05 14:09:14 debzit sshd[14246

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-09 Thread zithro
On 09 May 2023 17:47, Vincent Lefevre wrote: Hi, On 2023-05-04 21:07:17 +0200, zithro wrote: Here is what happens chronologically : 1. I start various SSH connections to a host, some normal, some with X forwarding, like that: "ssh user@host" and "ssh -X -n user@host GUI_APP" (like firejail fir

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-09 Thread Vincent Lefevre
On 2023-05-05 15:04:27 +0200, zithro wrote: > > journalctl after GUI LOGOFF > [...] > May 05 14:09:14 debzit sshd[14246]: Received disconnect from IP.IP.IP.IP >

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-09 Thread Vincent Lefevre
Hi, On 2023-05-04 21:07:17 +0200, zithro wrote: > Here is what happens chronologically : > > 1. I start various SSH connections to a host, some normal, some with X > forwarding, like that: "ssh user@host" and "ssh -X -n user@host GUI_APP" > (like firejail firefox, firejail thunderbird, etc). Ther

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-07 Thread zithro
On 06 May 2023 07:07, to...@tuxteam.de wrote: On Sat, May 06, 2023 at 10:24:52AM +0700, Max Nikulin wrote: Thanks both for the pointers, will report back with results

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-07 Thread zithro
On 05 May 2023 19:14, Max Nikulin wrote: Does it happen for newly created user with no customization? Never tried ! I recommended to do it just for a case that you added something to init files for the "zithro" user. AFAIK I didn't customize a lot, as I'm rarely logging to X. But it won't

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-07 Thread zithro
On 06 May 2023 06:45, David Wright wrote: *I login to VC1 and startx for an Xserver* I think that's why you don't have my problem, your user is always logged in, even when you close X. Is the greeter just deferring the ssh command until you login? Nope, they work without X "direct" login.

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-06 Thread Max Nikulin
On 05/05/2023 12:33, David wrote: That sounds like what is documented here, with the solution at the end: $ apt show dbus-user-session I have tried quite similar steps, it seems the cause is not dbus-user-session per se. I have a laptop with Debian 11 bullseye and "minimalistic" KDE (origi

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-05 Thread tomas
On Sat, May 06, 2023 at 10:24:52AM +0700, Max Nikulin wrote: > On 05/05/2023 20:04, zithro wrote: > > journalctl after GUI LOGOFF > > I do not see obvious problems. What might be inspected more closely: > > > May 05 14:09:14 debzit systemd[711]: Stopping D-Bus User Message Bus... >

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-05 Thread David Wright
On Fri 05 May 2023 at 13:59:37 (+0200), zithro wrote: > On 05 May 2023 07:33, David wrote: > > On Thu, 4 May 2023 at 19:07, zithro wrote: > > > > > this is a rather strange problem, I hope the title is explicit enough. > > > > Subject: Logging off an X s

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-05 Thread David Wright
On Sat 06 May 2023 at 09:57:30 (+0700), Max Nikulin wrote: > On 05/05/2023 10:30, David Wright wrote: > > On Fri 05 May 2023 at 09:13:04 (+0700), Max Nikulin wrote: > > > On 05/05/2023 02:07, zithro wrote: > > > > 2. using VNC or rdesktop, I then log on to X on the machine, do > > > > some stuff, t

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-05 Thread Max Nikulin
On 05/05/2023 20:04, zithro wrote: journalctl after GUI LOGOFF I do not see obvious problems. What might be inspected more closely: May 05 14:09:14 debzit systemd[711]: Stopping D-Bus User Message Bus... ^^^ If it is the bus

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-05 Thread Max Nikulin
On 05/05/2023 10:30, David Wright wrote: On Fri 05 May 2023 at 09:13:04 (+0700), Max Nikulin wrote: On 05/05/2023 02:07, zithro wrote: 2. using VNC or rdesktop, I then log on to X on the machine, do some stuff, then hit "log off" from the desktop menu. Immediately, ALL the previous SSH connecti

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-05 Thread Max Nikulin
On 05/05/2023 18:58, zithro wrote: # loginctl list-sessions SESSION  UID USER    SEAT  TTY     111 1000 zithro     112 1000 zithro     141 1000 zithro    pts/0 I do not see anything suspicious. I suppose, dbus-user-session hypothesis by David may be more productive. Perhaps you may prev

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-05 Thread zithro
On 05 May 2023 16:10, to...@tuxteam.de wrote: I have now full logs of before/after GUI logon/logoff, I posted them in the other post. Will try to make sense of it with this lead ... after a needed break ^^ I saved that for a look during weekend, now I'm supposed to fix an update of... forget it

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-05 Thread tomas
On Fri, May 05, 2023 at 03:26:12PM +0200, zithro wrote: > On 05 May 2023 14:11, to...@tuxteam.de wrote: [...] > > No DE, just a window manager (fvwm2). > > Isn't that fluxbox ? That's the GUI I used on Slackware. > Simple, lean, efficient ! No, quite a bit older. Fluxbox 2000-ish, fvwm 199-smal

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-05 Thread zithro
On 05 May 2023 14:11, to...@tuxteam.de wrote: On Fri, May 05, 2023 at 01:58:55PM +0200, zithro wrote: On 05 May 2023 06:32, to...@tuxteam.de wrote: dbus is a candidate. Let me explain: I have a funny setup -- no systemd, no dbus (still, Debian buster, and X). I'm on bullseye, I know how to sw

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-05 Thread zithro
So, previous post was BEFORE logging in into GUI via VNC. Now, I have outputs from after GUI LOGIN and after GUI LOGOFF. I've removed the maximum of useless lines (audio, GUI apps, gvfs stuff, etc), but tried to keep the most about systemd and dbus, as I'm clueless about what you wanna read ...

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-05 Thread tomas
On Fri, May 05, 2023 at 01:58:55PM +0200, zithro wrote: > On 05 May 2023 06:32, to...@tuxteam.de wrote: > > dbus is a candidate. Let me explain: I have a funny setup -- no systemd, > > no dbus (still, Debian buster, and X). > > I'm on bullseye, I know how to switch back to old init, but have no cl

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-05 Thread zithro
On 05 May 2023 07:33, David wrote: On Thu, 4 May 2023 at 19:07, zithro wrote: this is a rather strange problem, I hope the title is explicit enough. Subject: Logging off an X session closes all ssh -X connections started previously from outside X Yeah, I meant title==subject, I was hoping

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-05 Thread zithro
On 05 May 2023 06:32, to...@tuxteam.de wrote: dbus is a candidate. Let me explain: I have a funny setup -- no systemd, no dbus (still, Debian buster, and X). I'm on bullseye, I know how to switch back to old init, but have no clue about Dbus (kinda a Linux-GUI-with-systemd noob). Which DE/DM y

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-05 Thread zithro
On 05 May 2023 05:30, David Wright wrote: Isn't it this issue? https://news.ycombinator.com/item?id=19023885 Looks like it, yes ! I'm afraid I can't replicate the problem, though, as I don't have a "log off" button or menu entry. That might suggest that the problem is in something I don't r

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-05 Thread zithro
On 05 May 2023 04:13, Max Nikulin wrote: On 05/05/2023 02:07, zithro wrote: 2. using VNC or rdesktop, I then log on to X on the machine, do some stuff, then hit "log off" from the desktop menu. Immediately, ALL the previous SSH connections started in step 1 get closed, hence all the shells and

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-04 Thread David
On Thu, 4 May 2023 at 19:07, zithro wrote: > this is a rather strange problem, I hope the title is explicit enough. Subject: Logging off an X session closes all ssh -X connections started previously from outside X > Here is what happens chronologically : > > 1. I start various SSH

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-04 Thread tomas
On Fri, May 05, 2023 at 09:13:04AM +0700, Max Nikulin wrote: > On 05/05/2023 02:07, zithro wrote: > > 2. using VNC or rdesktop, I then log on to X on the machine, do some > > stuff, then hit "log off" from the desktop menu. [...] > Perhaps it may be related to user D-Bus sessions, however I would

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-04 Thread David Wright
On Fri 05 May 2023 at 09:13:04 (+0700), Max Nikulin wrote: > On 05/05/2023 02:07, zithro wrote: > > 2. using VNC or rdesktop, I then log on to X on the machine, do > > some stuff, then hit "log off" from the desktop menu. > > Immediately, ALL the previous SSH connections started in step 1 > > get c

Re: Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-04 Thread Max Nikulin
On 05/05/2023 02:07, zithro wrote: 2. using VNC or rdesktop, I then log on to X on the machine, do some stuff, then hit "log off" from the desktop menu. Immediately, ALL the previous SSH connections started in step 1 get closed, hence all the shells and the GUI apps (firefox, etc) ! Have you i

Logging off an X session closes all ssh -X connections started previously from outside X

2023-05-04 Thread zithro
Hi all, this is a rather strange problem, I hope the title is explicit enough. Here is what happens chronologically : 1. I start various SSH connections to a host, some normal, some with X forwarding, like that: "ssh user@host" and "ssh -X -n user@host GUI_APP" (like firejail firefox, firejai