How to programatically generate a password for a GNU screen session?
Normally, to define a password for an existing GNU screen, we have to:
- Start a screen
- Do Ctrl+A :password
- Upon reattach, screen will ask for the password
And to apply the password to new screen sessions:
- Do Ctrl+A ]
- Copy the encrypted password
- Put the encrypted password in
~/.screenrc(or some custom file) preceded by
- Upon next start (
screen -c "/path/to/custom_screenrcfor custom files), screen will ask for the password
That's a lot of manual steps to have an encrypted password generated.
I want to run a command to generate the encrypted password to be put in