# File lib/fog/compute/models/aws/server.rb, line 198 def ssh(commands) requires :identity, :public_ip_address, :username options = {} options[:key_data] = [private_key] if private_key Fog::SSH.new(public_ip_address, username, options).run(commands) end