Score:1

Can I switch to a different PTS session opened using SSH

cn flag

I'm using ssh to connect to a Ubuntu Server VM running on my desktop from both the desktop and my laptop like this:

krzysztof@Alan: ~$ ▶ w
 13:53:46 up 1 day, 18:03,  7 users,  load average: 0.32, 0.27, 0.22
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
krzyszto pts/0    10.0.0.14        13:53    1.00s  0.08s  0.00s w
krzyszto pts/1    10.0.0.8         Wed22   13:57m  4.27s  3.82s -zsh
krzyszto pts/5    10.0.0.8         Thu21   13:36m  0.58s  0.58s -zsh
krzyszto pts/6    10.0.0.14        10:29    7.00s  0.53s  0.05s python /opt/impala/shell/impala_shell.py --ssl --ca_cert=/xyz

10.0.0.14 is laptop, 10.0.0.8 is desktop.

However, let's assume that I left an application (e.g. spark or impala shell) running in the SSH session on pts/6 on my laptop and went back to my desktop. Is it possible somehow to switch to that application when logging in using ssh or when I'm already logged in?

I'm asking this question because I couldn't infer this from other posts that I've seen. The thing is that I might have left on the other computer an application running something and I want to continue working with that app. Can I take it over somehow without killing it? All session run under one user account but from different SSH connections.

I probably still don't understand the difference between TTY and PTS, but chvt doesn't seem to work with ssh and/or pts. Additionally, I've seen suggestions to use tmux or screen, but I'd be more comfortable with something simpler.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.