hedgehog / Cuken / Docs / Ssh examples
Password-less SSH
In order to specify remote command execution As a developer using Cucumber I want to use Aruba and custom steps to describe SSH sessions
Background:
- Given that "
cuken/ssh" has been required - And default ssh-forever options
- And I initialize password-less SSH access
Scenario: Aruba steps for remote commands via password-less SSH access
- Given I successfully run "
ssh cuken 'echo Supercalifragilisticexpialidocious;'" - Then the output contains "
Supercalifragilisticexpialidocious"
Scenario: Batch initialize password-less SSH access
- When I initialize password-less SSH access for:
user hostname name port whoamihostnameecho cukenecho 22:default localhost echo cuken22 :default :default :default :default - And I successfully run `ssh cuken 'echo Supercalifragilisticexpialidocious;'`
- Then the output contains "
Supercalifragilisticexpialidocious"
Scenario: Initialize interactive password-less SSH access
- When I interactively SSH to:
user hostname name port :default :default :default :default - And I type "
echo $SSH_CLIENT" - And I type "
echo $SSH_CONNECTION" - Then I type "
exit" - And the output contains "
..."
Source: features/ssh_examples/ssh.feature at commit efec2546, Cuken (Apache-2.0 license).