docs(ssh): Added documentation for ssh config

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran 2024-12-31 17:15:41 +01:00
parent 296cab2542
commit 0a47d4f687

View File

@ -17,7 +17,7 @@ as it will freeze up when you try to run two switch programs.
- 2x Server with each 4 usable SFP+ Ports
- Software
- Barefoot SDE
- SSH config for nodes
- SSH config for nodes (as seen in the appendix)
## Setup and Usage
@ -308,3 +308,25 @@ ip netns exec "$NS" arp -i "$IF" -s 10.0.3.4 00:00:00:00:00:04
```
Replace the placeholder mac address with the actual MAC addresses of the interfaces.
### ssh_config
```config
Host ncs-node1 ncs-node2 ncss-head
User tuan-dat.tran
IdentityFile /path/to/privatekey
Host ncs-head
HostName 130.75.73.1
Port 30022
Host ncs-node1
HostName 192.168.1.101
Port 22
ProxyJump ncs-head
Host ncs-node2
HostName 192.168.1.102
Port 22
ProxyJump ncs-head
```