Skip to content

Commit

Permalink
Clarify ssh config and alias names
Browse files Browse the repository at this point in the history
Signed-off-by: Henri Rosten <[email protected]>
  • Loading branch information
henrirosten committed Nov 8, 2023
1 parent 3e61c6e commit a2ac22b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,20 @@ Current ghaf-infra targets:
╘═══════════════╧═══════════════╧══════════════╛
```

In case `hostname` is not directly accessible for your current `$USER`, use `~/.ssh/config` to specify the ssh connection details such as username, port, or key file used to access the specific host.

As an example, to access host `51.12.56.79` with a specific username and key, you would add the following to `~/.ssh/config`:

```
$ cat ~/.ssh/config
Host 51.12.56.79
HostName 51.12.56.79
User my_other_user_name
IdentityFile /path/to/my/private_key
```

Since `task.py` internally uses ssh when accessing hosts, the above example configuration would be applied when accessing the `ghafhydra-dev` alias.

#### build-local
The `build-local` task builds the given alias configuration locally. If the alias name is not specified `build-local` builds all alias configurations:

Expand Down

0 comments on commit a2ac22b

Please sign in to comment.