skip to content
Andrew Marder

SSH Key Bindings

/ 2 min read

Updated:

Recently, I was asked how to set up an SSH client so that Ctrl+ would move forward a word. Here are some things I learned along the way.

It turns out different SSH clients send different keycodes for the same keys! Anne Baretta describes an easy way to see what your client is sending to the terminal:

The best way to trouble-shoot is using Ctrl-v key. Press Control and v simultaneously, release them, and then type one of the special keys, e.g. Delete. It will tell you which sequence will be sent to the terminal (console or xterm).

When SSH’ing into a Linux server using PuTTY Ctrl+v Ctrl+ produced

^[OC

Using SecureCRT Ctrl+v Ctrl+ produced nothing. Regardless of which client I used, Ctrl+ did not move me forward a word.

Anne Baretta notes, “\e means ESC.” In SecureCRT I mapped the key combination Ctrl+ to \ef. I knew that Esc+f would move forward a word in bash since most Emacs shortcuts also work in bash. Mission accomplished!


2025-05-31 Update: I wanted to see if this advice still works (it does). I SSH’ed into a Linux server using Terminal on a Mac and found Ctrl+v Ctrl+ produced nothing. I also found that Option+ did move forward a word, when I checked this with Ctrl+v Option+ I was presented with:

^[f