Score:0

SSH access even if your CMD is closed

ie flag

Please I want some help My work manager gives me SSH access to a local server using the command : shh user@local_ip to work on a data sciences project The running time is so long and if I close my CMD, the running process will be stopped And while the code running, if I tried to open another CMD or Powershell window to connect to the server, then using the command : screen -list, the output is 0 sockets I want a way to keep my code running on the server even if I close the CMD window Note: There's no public hosting, No RDP access

Is there a way to do that?

Thank's for listening.

Score:1
in flag

You need to run your script with screen in the first place, this is not done automatically. Otherwise there won't be anything in screen -list.

  1. Run screen
  2. Start your script
  3. Press Ctrl - A, then D to detach from your screen.
  4. You can exit the session

To reattach, run screen -r or if there are multiple screens running screen -r <ID>. Check the IDs with screen -ls.
You can also give a session name with screen -S <NAME>, then you can run screen -r <NAME>.

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.