# Does processes end after ssh session disconnect?

**URL:** <https://deeptalk.lambda.ai/t/does-processes-end-after-ssh-session-disconnect/3684>\
**Category:** Technical Help\
**Created:** [May 5, 2023, 7:49am UTC](https://deeptalk.lambda.ai/t/does-processes-end-after-ssh-session-disconnect/3684 "2023-05-05T07:49:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Calvin](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Calvin](https://deeptalk.lambda.ai/u/Calvin)\
**Post date:** [May 5, 2023, 8:26am UTC](https://deeptalk.lambda.ai/t/does-processes-end-after-ssh-session-disconnect/3684/2 "2023-05-05T08:26:26Z")

</div>

Hi,

I’d try checking any running python processes with:  
`ps aux | grep python`  
And see if you recognize any of the commands being run is the training you started yesterday.

Something I’d recommend doing in the future, is performing your long-running training in a `screen` session which will hold open a session, regardless if you lose SSH connectivity. So you’d open a screen session, run your training process, then detach from the screen before performing any other tasks, and then reattach to the screen session later to check if it’s complete.

Here are a few example commands and keyboard shortcuts for managing your screen sessions:

```auto
 - Start a new screen session:
   screen

 - Start a new named screen session:
   screen -S {{session_name}}

 - Start a new daemon and log the output to screenlog.x:
   screen -dmLS {{session_name}} {{command}}

 - Show open screen sessions:
   screen -ls

 - Reattach to an open screen:
   screen -r {{session_name}}

 - Detach from inside a screen:
   Ctrl + A, D

 - Kill the current screen session:
   Ctrl + A, K

 - Kill a detached screen:
   screen -X -S {{session_name}} quit

```

Be sure to detach from a screen before attempting to logout as `CTRL + D` will log you out of that session and also kill the screen.

Hopefully this helps and please do reach out should you have any further questions or concerns!

Regards,  
Calvin Wallace  
Linux Support Engineer

---

_[View the full topic](https://deeptalk.lambda.ai/t/does-processes-end-after-ssh-session-disconnect/3684)._
