Ssh session with X-forwarding: Difference between revisions

From Thom Group Wiki
Jump to navigation Jump to search
(Created page with "In order to set up a quick link to an ssh session through citadel with X-forwarding the following code has to be added to a `~/.ssh/config` file ``` ForwardX11 yes ForwardX11T...")
 
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
==Config files==
In order to set up a quick link to an ssh session through citadel with X-forwarding the following code has to be added to a `~/.ssh/config` file

```
In order to set up a quick link to an ssh session through citadel/barbican with X-forwarding the following code has to be added to a </code>~/.ssh/config</code> file

</code>
ForwardX11 yes
ForwardX11 yes
ForwardX11Trusted yes
ForwardX11Trusted yes
Line 12: Line 15:
User $crsid
User $crsid
Hostname citadel.ch.cam.ac.uk
Hostname citadel.ch.cam.ac.uk
</code>
```

where `$machine` is the local host you would like to connect to (cerebro/sandstone/hylas ...)
where </code>$machine</code> is the local host you would like to connect to (cerebro/sandstone/hylas ...)

Latest revision as of 13:03, 8 April 2025

Config files

In order to set up a quick link to an ssh session through citadel/barbican with X-forwarding the following code has to be added to a ~/.ssh/config file

ForwardX11 yes ForwardX11Trusted yes

Host $machine User $crsid Hostname $machine.ch.private.cam.ac.uk ProxyCommand ssh -Y $crsid@citadel.ch.cam.ac.uk -W $machine.ch.private.cam.ac.uk:22

Host citadel User $crsid Hostname citadel.ch.cam.ac.uk

where $machine is the local host you would like to connect to (cerebro/sandstone/hylas ...)