authorized_keys:从 github api 中提取公共 ssh 密钥

时间:2021-07-05 21:07:59
【文件属性】:
文件名称:authorized_keys:从 github api 中提取公共 ssh 密钥
文件大小:11KB
文件格式:ZIP
更新时间:2021-07-05 21:07:59
Ruby 验证密钥 从 github 团队拉取公共 ssh 密钥并将它们写入一个 authorized_keys 文件。 这有利于授予对服务器的访问权限。 安装 将此行添加到应用程序的 Gemfile 中: gem 'auth_keys' 然后执行: $ bundle 或者自己安装: $ gem install auth_keys 用法 AuthKeys . configure do | c | c . org_name = "AwesomeOrg" c . auth_token = "asdfasdf12341234123412341234" ; c . team_ids = [ 123456 , 123457 ] ; c . file_path = "/home/ubuntu/.ssh/authorized_keys" end 假设您的配置有效。
【文件预览】:
authorized_keys-master
----LICENSE.txt(1KB)
----lib()
--------auth_keys.rb(2KB)
--------auth_keys()
----Gemfile(100B)
----spec()
--------spec_helper.rb(4KB)
--------auth_keys_spec.rb(5KB)
----Rakefile(29B)
----auth_keys.gemspec(1KB)
----README.md(1KB)
----.rspec(31B)
----.gitignore(118B)

网友评论