xdc_access.md 1.09 KB
Newer Older
1
---
Ryan Goodfellow's avatar
Ryan Goodfellow committed
2
id: xdc-access
3
title: XDC Access
Ryan Goodfellow's avatar
Ryan Goodfellow committed
4
sidebar_label: XDC Access
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---

Various forms of Ubuntu have a buggy SSH. If you use Ubuntu first re-evaluate
your life decisions and what has led you to this point, then do the following.

Add this to your `~/.ssh/config` replacing anything within `<>` brackets with an
appropriate value.

- `<user>` is your MergeTB user name.
- `<id_rsa>` is the private key corresponding to the public key you uploaded to
  the Merge Portal.
- `<project>` is the name of project containing XDCs you want to connect to.

```config
Host *-<project>
  Hostname %h
  User <user>
22
  ProxyCommand ssh -p 2202 -i ~/.ssh/<id_rsa> -W %h:%p %r@jumpc.mergetb.io
23
24
25
26
27
28
29
30
31
  IdentityFile ~/.ssh/<id_rsa>
```

Then you can SSH into an XDC with

```shell
ssh <xdc-name>-<experiment-name>-<project>
```

32
such as
33
34
35
36
37

```shell
ssh xdc47-delta-quadrant
```

38
For non-buggy SSH (OpenSSH 7.3+), you can use the following instead
39
40

```shell
41
42
43
44
Host jumpc.mergetb.io
  User <user>
  IdentityFile ~/.ssh/<id_rsa>

45
46
47
Host *-<project>
  Hostname %h
  User <user>
48
49
  IdentityFile ~/.ssh/<id_rsa>
  ProxyJump %r@jumpc.mergetb.io:2202
50
```