I usually ssh with '-Y'. I'm wondering if there is a way to set it as
the default so that I don't have to type every time I run ssh.
Regards,
Peng
man ssh_config
DES
--
Dag-Erling Smørgrav - d...@des.no
...or create an alias for your user, for example:
alias myssh='ssh -Y'
in your shell file (.bashrc for example).
--
Jon Solberg (remove "nospam" from email address).
Shall I set the following two options?
ForwardX11 yes
ForwardX11Trusted yes
The first corresponds to -X, the second to -Y. IIRC, the second implies
the first, so you don't need to specify both.
Note that it is *not* a good idea to enable that unconditionally. You
should only forward your X session to machines that you trust. A typical
~/.ssh/config would look like this:
| Host *
| Compression yes
|
| Host untrusted untrusted.example.com
| HostKeyAlias untrusted.example.com
| HostName untrusted.example.com
|
| Host trusted trusted.example.com
| HostKeyAlias trusted.example.com
| HostName trusted.example.com
| ForwardX11Trusted yes