WORK IN PROGRESS
Solution in detail
In the following sections the solution ideas from above are explained, and analysed. The discussed implementations are examples, and can be varied by a great deal.
An evaluation of each of the requirements stated is given, and summarized in the result
- fully fulfills the requirement,
- partially fulfills the requirement
- no or inadequate fulfillment of the requirement
Jump Host without interactive session
ssh -t -A public-ip "script -c 'ssh db-server'"
or, more elaborate:
ssh -t -A 127.0.0.1 "script -c 'ssh db.server' --timing=/tmp/script.timing /tmp/script.log"
Replaying the recorded session:
scriptreplay --timing=/tmp/script.timing /tmp/script.log