Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you send meta key over ssh on Mac?

Tags:

emacs

ssh

I'm using ssh in Terminal to ssh into a Linux host where I'm running Emacs. I'd like to be able to use meta key commands, but I'm not how to send them from my (local) Mac to the (remote) Linux host. How do I do that?

Sorry if this isn't exactly a programming question.

like image 734
allyourcode Avatar asked Aug 25 '10 04:08

allyourcode


People also ask

How do you use the Meta key on a Mac?

Alternatively, instead of using defaults in the command line, you can simply go to the Terminal > Preferences... (or type ⌘ + , ). Then, Profiles > Keyboard and check the box Use Option as Meta key .

How do I enable SSH in Terminal Mac?

There are two other ways you can enable SSH for macOS devices: Turn on SSH in the GUI by going to System Preferences > Sharing > Remote Login. Leverage the Commands tab in the JumpCloud Directory Platform to enable SSH across your fleet.


1 Answers

Well, you can either press Escape, then the key in question, or in the Terminal.app go to Preferences -> Settings -> Keyboard and turn on "Use option as meta key".

On newer versions, it is under Preferences -> Profiles -> Keyboard.

like image 185
brontitall Avatar answered Sep 19 '22 04:09

brontitall