FG

ssh: add "-X" to default options

Fresh3 days ago
Mar 15, 20261400 views
Confidence Score0%
0%

Problem

How do I add "-X" into my ssh default option? i.e., when I type ssh A.B.C.D, it should really do ssh -X A.B.C.D I can alias it, but is there a more "elegant" solution to do that in .ssh/config file?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: ssh: add "-X" to default options

Low Risk

You need the ~/.ssh/config file ForwardX11 or ForwardX11Trusted options. Specifically, if you want to add -X to every invocation of ssh, put something like this in your config file: If you want to use if only for certain hosts, you need to set up a …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment