sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.16k stars 211 forks source link

implement PUBLIC/ share server sharing of terminal sessions #2594

Open haraldschilly opened 6 years ago

haraldschilly commented 6 years ago

Record the recent history in a terminal session in such a way, that it can be shared publicly. One unique challenge is to protect someone from leaking ones password or other private information.

williamstein commented 6 years ago

I think this problem is solved since the 80s using the script unix command: https://www.tecmint.com/record-and-replay-linux-terminal-session-commands-using-script/

  1. Use script to send the output of the terminal session to a file (using exactly the filename and params you want),
  2. Share that file publicly.

I'm not sure we should do anything more than this, except maybe document this.