provider-ssh-authorized-keys

command module
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

README

provider-ssh-authorized-keys

To enable impersonation for the supervisor.

Build

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o provider-ssh-authorized-keys ./

Install

# As root
mv provider-ssh-authorized-keys /usr/bin/provider-ssh-authorized-keys
chown root:root /usr/bin/provider-ssh-authorized-keys

Wrap the executable with a script:

cat << EOF > /usr/bin/custom-ssh-authorized-keys
#!/bin/sh
# SSSD
/usr/bin/sss_ssh_authorizedkeys "$1"

# Our authorized keys
/usr/bin/provider-ssh-authorized-keys --supervisor.endpoint localhost:3000
EOF
chown root:root /usr/bin/custom-ssh-authorized-keys

SSH Config:

AuthorizedKeysCommand /usr/bin/custom-ssh-authorized-keys
AuthorizedKeysCommandUser root

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
gen

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL