PuTTY scrollback is the local history of terminal output that has left the screen. Increasing a saved session's scrollback limit retains more terminal output in local memory for later scrolling.
Lines of scrollback in the Window category controls how much history PuTTY keeps beyond the visible terminal screen. The default is 2000 lines, and each saved session can have its own limit. This setting changes the local terminal buffer rather than what the remote server records.
Scrollback is finite, so the oldest lines are discarded as new output fills the buffer. Increasing the limit cannot recover output already discarded, and closing the terminal window loses its history. Session logging preserves future output in a file when a memory buffer is not enough.
Steps to increase the scrollback buffer in PuTTY:
- Launch PuTTY.

- Select the saved session profile to modify under Saved Sessions.
Default Settings is the profile for new-session defaults; saving it does not overwrite existing saved profiles.
- Click Load to populate settings for the selected profile.

- Open the Window category in the left tree.
Reset scrollback on keypress and Reset scrollback on display activity only return the view to current output; they do not erase history.
- Set Lines of scrollback to the number of lines you want, such as 20000.
PuTTY does not document a universally safe maximum. More retained output consumes more local memory, so 20000 is a starting value rather than a maximum, and available memory sets the practical ceiling. There is no unlimited-history setting.
- Return to the Session category.

- Click Save to persist the new scrollback setting for that profile.
The name in the Saved Sessions box identifies the profile that Save will overwrite.
- Click Open to connect using the updated settings.
Other open PuTTY windows keep their own scrollback limits.
- Run a command that prints 5000 lines in the connected Linux or Unix shell.
$ seq 1 5000 1 2 3 ##### snipped ##### 4998 4999 5000
A remote tmux or Screen session has its own history limit.
Related: How to configure tmux scrollback
Related: How to configure Screen scrollback - Scroll back to the beginning of the output to confirm that lines 1, 2 and 3 are still available.
Shift+Page Up scrolls the PuTTY window without sending the keypress to the remote host. Ctrl+Shift+Page Up jumps to the top of its retained history.