In Ubuntu I'm trying to run the geany editor on my local X display via the command:
autossh -o StrictHostKeyChecking=false -XCg me@otherDYNDNShost geany &
Trouble is, after the first disconnect & auto re-connect, I have to fg that process to make the (new) geany responsive again, in my local X windows session. Which means that disown from the terminal caused it to get lost into a frozen sleeping state altogether, eventually.
How can I run this truly detached and independent of any terminal/tty?
Appending <&- to the command to cut off STDIN didn't seem to matter either.

tmuxor evenxpracould help you a lot more here. Also the manual for autossh mentions-fdid you try that? – Max Jan 5 at 12:40tmux/screenmay indeed be viable;xpraproved too resource intensive on my lean 1-2GB PCs in the past (behind the scenes X server). In reality before having this problem I was trying to avoid using ansshlayer altogether, just sticking to classicxhost +over port 6000 (i.e.DISPLAY=otherDYNDNShost:0 geany &) but could still not figure out how to re-enable that network port in Ubuntu's X server, not even withDisallowTCP=falsein/etc/gdm/custom.confas researched elsewhere. – Marcos Jan 5 at 18:50