codefever git  协议处理简单说明

codefever关于git ssh 协议的处理与gitlab 的是大同小异的,都是基于了ssh 的command restriction ( forced command)
当然gitlab 也支持了基于的AuthorizedKeysCommand,而且目前gitlab 也基于golang 开发了一个自己的ssh server (还没ga)
同时codefever 也参考gitlab 实现了自己的一个cli 程序,进行git 的操作处理,具体参考ssh-gateway 中的
shell 文件夹中的代码,misc/modify_authorized_keys.php 中包含了ssh 的处理

参考资料

https://docs.gitlab.com/ee/administration/operations/fast_ssh_key_lookup.html
https://github.com/PGYER/codefever/tree/master/ssh-gateway
https://man.openbsd.org/sshd_config
https://blog.scalesec.com/just-in-time-ssh-provisioning-7b20d9736a07?gi=2df25a67977e

posted on 2022-02-21 23:05  荣锋亮  阅读(116)  评论(0编辑  收藏  举报

导航