If we have servers contracted in an external location, on many occasions we will need interventions by remote hands, so that they can perform certain tasks, they will often require access to the OS. In such a case, we have two options:
- Change the password and give temporary access.
- Launch a tty in a screen session using openvt.
In this article, we will choose the latter option as it is more comfortable and also through screen, we can see at all times what is being done on the server.
The idea is to start a tty from a screen session to which the remote hands will have access without authentication, when we close the session, they will be left without access.
We launch the screen session in the tty:
We check that the screen session has been launched:
We attach to the session, in this way we can see the operations carried out by the remote hands:
Finally, when we exit the screen session, the tty will close, leaving the remote hands out: