SSH GNU Screen – How to Scroll Inside a Screen Session of an SSH Connection

gnu-screenssh

I ssh-connect an ubuntu server from an ubuntu client machine. And resume my screen session by running screen -d -r name. I'm not able to scroll inside the screen session. I created my screen session by running screen -S name. Do I have to pass any extra flag to make the scrolling work?

Best Answer

By default Screen will keep a scrollback buffer, but you can't use it the same way as the "conventional" scrollback buffer maintained by your terminal emulator. I.e. you can't use your mouse to scroll up.

You need use screen key bindings to enable copy/scrollback mode.

For me that is with CTRL+a ESC

(screen will notify that copy mode has been enabled)

and then I can use the UP-arrow on my keyboard to scroll back, but you can also use the other movement keybindings to move and select in the scrollback buffer.

Related Question