ssh

command
v0.0.2-0...-872048b Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2019 License: MIT Imports: 5 Imported by: 0

README

SSH example


cd examples/ssh

vagrant up
export VAULT_ADDR=http://192.168.33.10:8200
export VAULT_TOKEN=toor
vault status

go run main.go
vagrant ssh --command /bin/bash -c "echo \"TrustedUserCAKeys /vagrant/ssh_key.pub\" | sudo tee --append /etc/ssh/sshd_config"
vagrant ssh --command /bin/bash -c "sudo systemctl restart sshd"
vault ssh -mode=ca -role=default -mount-point=ssh -public-key-path=~/.ssh/gpg.pub vagrant@192.168.33.10

Cleanup


vagrant destroy

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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