Contents

Password-less SSH

@announce

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:
    userhostnamenameport
    whoamihostnameecho cukenecho 22
    :defaultlocalhostecho 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:
    userhostnamenameport
    :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).