forked from CanonicalLtd/hardening-ssh-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
gnuoy/hardening-ssh-tests
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# Setting up keys HIO_UNIT="hardening-ssh-tests/0" UNIT_TO_TEST="ubuntu/0" juju scp $HIO_UNIT:/home/ubuntu/.ssh/id_rsa.pub /tmp/id_rsa.pub juju scp /tmp/id_rsa.pub $UNIT_TO_TEST:/tmp/ juju run --unit $UNIT_TO_TEST "\ useradd -m -d /home/hiotest hiotest; \ install -m 700 -o hiotest -d /home/hiotest/.ssh; \ install -m 640 -o hiotest /tmp/id_rsa.pub /home/hiotest/.ssh/authorized_keys" # Running a test juju action do hardening-ssh-tests/0 run-test test-name=default/inspec/ target-ip=10.5.0.9 # Generating charm git clone https://github.com/CanonicalLtd/hardening-ssh-tests.git mkdir /tmp/juju_repo charm generate -o /tmp/juju_repo hardening-ssh-tests cd /tmp/juju_repo juju deploy local:trusty/hardening-ssh-tests
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 97.2%
- Shell 2.8%