Once in a will you need you have a lang running script that you started into a shell but you want to transfer it to a screen. For this i am using the reptyr program which i installed with

sudo pacman -S reptyr or sudo apt-get install reptyr

This image has an empty alt attribute; its file name is image.png

find pid
ps ax | grep ssh

# find pid 34177 (for example)

# start a screen
screen -S my_screen_name

# in de screen start reptyr
reptyr 34177

if you get a issue with ptrace scope just change this value
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope