sshpiper/plugin/workingdirbykey
2022-10-25 00:35:45 +00:00
..
main.go smaller image by keeping k8s and dir plug only 2022-10-25 00:35:45 +00:00
README.md add workdirbykey to readme 2022-07-08 02:22:01 +00:00

Publickey based Working Directory plugin for sshpiperd

This plugin is smilar to the workingdir plugin, but it uses public key to route.

workingdir tree

├── git
│   ├── bitbucket
│   │   └── sshpiper_upstream
│   ├── github
│   │   ├── authorized_keys
│   │   ├── id_rsa
│   │   └── sshpiper_upstream
│   └── gitlab
│       └── sshpiper_upstream
├── linode....

The plugin will search across all sub directories of the username directory to see if the downstream key is in authorized_keys file. The first matched sub directory will be used to route to the upstream.