User Tools

Site Tools


Table of Contents


= script :: How to Log or Record a SSH Terminal Session/Exerpt =

Copying and pasting text from putty into notepad (for use in an email for example) is less than ideal. Although screen can be setup to record/log a screen session, it cannot be done on the fly (immediately).

script is a very handy and simple tool which will log/record a SSH session when invoked.

Basic Usage

//Invoke: script //starts a new session and starts logging it. If no parameters are given, it logs by default to: ~/typescript //or script filenameout

//End: exit //exit will exit the script session

Advanced Usage

script -t 2>~/filename.time -a ~/filename.script scriptreplay ~/filename.time ~/filename.script


“4.5.1 Recording the session” on

script.txt · Last modified: 2022/07/19 21:13 by