Skip to content

asannou/vuls-ssh-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vuls-ssh-command

Restrict commands via SSH like curl http://169.254.169.254/latest/meta-data/iam/security-credentials/role_name.

Create a Vuls User

$ sudo adduser -m vuls
$ sudo su vuls
$ mkdir -m 700 /home/vuls/.ssh

Install

$ curl https://raw.githubusercontent.com/asannou/vuls-ssh-command/0.9.1/vuls-ssh-command.sh > /home/vuls/.ssh/vuls-ssh-command.sh
$ chmod +x /home/vuls/.ssh/vuls-ssh-command.sh
$ echo 'command="/home/vuls/.ssh/vuls-ssh-command.sh" ssh-rsa ...' > /home/vuls/.ssh/authorized_keys

About

Restrict SSH Commands for Vuls

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages