Put a password on your screen session


You can “protect” the access to a screen session. Don’t use your usual password, as the method used is pretty weak (standard DES)

Open a screen session :

$ screen

Inside the session press “ctrl + a” then type “:password”

If successfully set, you should see [ Password moved into copybuffer ] in the lower left corner of the terminal.

Now you can detach by pressing “ctrl + a” then type “d” Reattach with “screen -r” from the prompt.

You should be prompted for the session password.

Thanks for reading this post!

If you found an issue in this article, you can create an issue on Github.

If you have a comment or question, please drop me a line below!