About bindUsingEdgeIdentity
Iโm was still trying to find time where I can make my lab. I was going to do it on Ziti TV this week but I showed BrowZer self-hosted instead. Looking at your listenOptions i see that you have it set to:
"bindUsingEdgeIdentity":false,
That is most likely the problem. If you take a peek at the zssh readme youโll see that for this to work you must have bindUsingEdgeIdentity
to true. zssh
relies on that setting, thatโs how youโre able to zssh $user@${identityName}
. I see then your second post state that itโs set to true but that id does look different. I suspect thatโs why youโre asking about the filtering on id.
On Filtering in the CLI
The very short answer is โyesโ. Iโll then get into a big long answer below to give you more info in case itโs usefulโฆ
ziti edge list identities 'id="yIutERoRPW"'
Too much detail on filtering maybeโฆ ![:smiley: :smiley:](https://emoji.discourse-cdn.com/apple/smiley.png?v=12)
With the ziti
CLI you can use the -j
flag. It returns json. That json ends with a small section called โfilterableFieldsโ like this:
ziti edge list identities -j | tail -22
"meta": {
"filterableFields": [
"tags",
"isSystem",
"externalId",
"type",
"id",
"updatedAt",
"name",
"authPolicyId",
"isAdmin",
"isDefaultAdmin",
"createdAt",
"roleAttributes"
],
"pagination": {
"limit": 10,
"offset": 0,
"totalCount": 3
}
}
}
That filterable Fields section will tell you what fields can be filtered on, and youโll see id
is one of those fields.
So for example, I have these identities:
ziti edge list identities
โญโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโโโฎ
โ ID โ NAME โ TYPE โ ATTRIBUTES โ AUTH-POLICY โ
โโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
โ EEfGFmPm45 โ net1_offload โ Device โ โ Default โ
โ tlYZE7h7h โ Default Admin โ User โ โ Default โ
โ yIutERoRPW โ ip-172-31-47-200-edge-router โ Router โ โ Default โ
โฐโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโโฏ
results: 1-3 of 3
I can filter on id
like this:
ziti edge list identities 'id="yIutERoRPW"'
โญโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโโโฎ
โ ID โ NAME โ TYPE โ ATTRIBUTES โ AUTH-POLICY โ
โโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
โ yIutERoRPW โ ip-172-31-47-200-edge-router โ Router โ โ Default โ
โฐโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโโฏ
results: 1-1 of 1
Next Steps
I am guessing that you have more than one config or that you might have the wrong config associated to the zssh
service maybe. You can find that out by running:
ziti edge list configs
ziti edge list services -j
Note the second command adds -j
. Youโll need to view the json right now as the CLI doesnโt show the configs associated to the service yet. Then find the configs
block for your service:
"configs": [
"4LjIh2UVnHu35XPHwyFHe3",
"KX6Nxj0uX4hCPjGQRGEiT"
],
Letโs make sure the correct configs are referenced.
You should be able to take that quickstart block from the readme, run it as-is, then on the sshd
(server if you will) side, for those identities update them to use the attribute: #zsshSvc.binders
and for the zssh
โclientโ, update those identites with #zsshSvc.dialers
and it all should โjust workโ.
Iโll see if I can get this running locally nowโฆ I have some time.