Categorygithub.com/deepsquare-io/grid/provider-ssh-authorized-keys
modulepackage
1.3.0
Repository: https://github.com/deepsquare-io/grid.git
Documentation: pkg.go.dev

# 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

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author