Skip to content

manojampalam/jea-sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A simple contrained custom shell to be used with remote ssh sessions via ForceCommand

Usage

Set user's command to be executed via SSH_ORIGINAL_COMMAND environment variable. Pass a list of allowed commands that can be run as a base64 encoding of following yaml

allowedCommands:
 - whoami
 - ifconfig

Example

SSH_ORIGINAL_COMMAND=whoami 
jea-sh YWxsb3dlZENvbW1hbmRzOgogLSB3aG9hbWkKIC0gaWZjb25maWc=
>    localuser

SSH_ORIGINAL_COMMAND=date
jea-sh YWxsb3dlZENvbW1hbmRzOgogLSB3aG9hbWkKIC0gaWZjb25maWc= 
-    unauthorized

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages