Skip to content

Instantly share code, notes, and snippets.

@jarib
Forked from Atalanta/gist:1007444
Created June 4, 2011 01:34
Show Gist options
  • Select an option

  • Save jarib/1007448 to your computer and use it in GitHub Desktop.

Select an option

Save jarib/1007448 to your computer and use it in GitHub Desktop.
Then /^I should be able to ssh to the Ubuntu server as the "([^"]*)" user$/ do |ssh_user|
Given 'I have the following public keys', table(%{
| keyfile |
| /root/.ssh/#{ssh_user}-test-key |
})
Then 'I can ssh to the following hosts with these credentials', table(%{
| hostname | username |
| 192.168.20.20 | #{ssh_user} |
})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment