| | 301 | |
| | 302 | |
| | 303 | ==== Common ssh options for nodes ==== |
| | 304 | |
| | 305 | We'd like to do a few things for convenience: |
| | 306 | |
| | 307 | 1. log into nodes as root by default |
| | 308 | 1. allow forwarding of X11 applications |
| | 309 | 1. Suppress annoying host key warnings |
| | 310 | |
| | 311 | First, log into any console, or gw.orbit-lab.org |
| | 312 | |
| | 313 | After logging in, create or modify the file at {{{~/.ssh/config}}} |
| | 314 | |
| | 315 | Add the following to the file |
| | 316 | |
| | 317 | {{{ |
| | 318 | Host sdr?-md* sdr?-s?-lg* srv?-co* srv?-lg* node?-* node??-* |
| | 319 | User root |
| | 320 | UserKnownHostsFile /dev/null |
| | 321 | StrictHostKeyChecking no |
| | 322 | }}} |
| | 323 | |
| | 324 | * Host: The Host line matches common naming conventions for nodes within the testbed |
| | 325 | * User: root is set to match the common default for baseline |
| | 326 | * !UserKnownHostsFile: is set to /dev/null to prevent saving new host keys for nodes |
| | 327 | * !StrictHostKeyChecking: disables the warning message. SSH complains when host keys for a dns name change. This is a useful security feature, but is inconvenient within the testbed, where the operating system on a trusted machine changes frequently. Do not set it as a wildcard default for public endpoints, or you will be vulnerable to spoofing or man in the middle attacks. |
| | 328 | |
| | 329 | |
| | 330 | |
| | 331 | |
| | 332 | |