Pinggy provide mechanism to authenticate visitor connection using following basic authentication or key authention or both.

Basic Authentication

With basic authentication, browser would prompt visitor to insert client selected username:password as follows:

Basic Authentication

Client can enable basic authentication as follows:

ssh -p 443 -R0:localhost:<localport> -t b:username:password
ssh -p 443 -R0:localhost:<localport> -t <token> b:username:password

One can add multiple username:password combination as follows:

ssh -p 443 -R0:localhost:<localport> -t b:username1:password1 b:username2:password2
ssh -p 443 -R0:localhost:<localport> -t <token> b:username1:password1 b:username2:password2

Key Authentication

Key authentication is a mechanism where visitor provides a Authorisation header with value Bearer <key> with each and every request. Pinggy have option to set a set of keys during tunnel creation.

Start tunnel with key authentication as follows

ssh -p 443 -R0:localhost:<localport> -t k:key
ssh -p 443 -R0:localhost:<localport> -t <token> k:key

Like basic authentication, one can set multiple keys as well.

ssh -p 443 -R0:localhost:<localport> -t k:key1 k:key2
ssh -p 443 -R0:localhost:<localport> -t <token> k:key k:key2