I am trying to create a zrok share for ssh. Downloaded the docker compose.yml for private share, and followed the steps. To allow my remote laptop using different zrok account, I set the following:
ZROK_UNIQUE_NAME: myssh
ZROK_BACKEND_MODE: tcpTunnel
ZROK_TARGET: localhost:22
ZROK_ACCESS_GRANTS: “myemail@gmail.com”
Run docker compose up works fine. In my client workstation, I ran “zrok access private myssh” but it gives me this error:
[ERROR]: unable to create private access ([POST /access][401] accessUnauthorized)
Tried to use ZROK_SHARE_OPTS: "--access-grant myemail@gmail.com" instead, and it works.
What is the proper way to use ZROK_ACCESS_GRANTS?