Skip to content

Instantly share code, notes, and snippets.

@Atalanta
Created June 4, 2011 01:32
Show Gist options
  • Select an option

  • Save Atalanta/1007444 to your computer and use it in GitHub Desktop.

Select an option

Save Atalanta/1007444 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':
| keyfile |
| /root/.ssh/#{ssh_user}-test-key |
Then 'I can ssh to the following hosts with these credentials':
| 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