Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Make it possible to have multiple tags on a configuration block.#549

Open
kurganme wants to merge 1 commit intoopenssh:V_9_9 from
kurganme:allows-an-array-of-tags-v2
Open

Make it possible to have multiple tags on a configuration block. #549
kurganme wants to merge 1 commit intoopenssh:V_9_9 from
kurganme:allows-an-array-of-tags-v2

Conversation

@kurganme
Copy link

@kurganme kurganme commented Jan 4, 2025

This patch allows for multiple tags on a configuration block.
For instance, with this configuration:

Host test-host
 Tag change-hostname change-port-and-user
 Tag jump-to-mybox
Match tagged change-hostname
 Hostname new-hostname
Match tagged change-port-and-user
 Port 12345
 Tag change-user
Match tagged change-user
 User bilbo
Match tagged jump-to-mybox
 ProxyJump mybox
Match tagged nocheck
 StrictHostKeyChecking false
 UserKnownHostsFile /dev/null
Match tagged frodo-identity
 IdentityFile ~/.ssh/id_ed25519_frodo

the following parameters can be obtained:

gandalf@mybox $ ssh -P nocheck -P frodo-identity test-host -G |
> grep -E "^(user|hostname|port|stricthostkeychecking|identityfile|`
> `userknownhostsfile|tag|proxyjump) "
user bilbo
hostname new-hostname
port 12345
stricthostkeychecking false
identityfile ~/.ssh/id_ed25519_frodo
userknownhostsfile /dev/null
tag nocheck
tag frodo-identity
tag change-hostname
tag change-port-and-user
tag jump-to-mybox
tag change-user
proxyjump mybox
gandalf@mybox $

dermetfan reacted with thumbs up emoji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /