# File lib/fog/compute/models/server.rb, line 31 def ssh(commands, options={}, &blk) require 'net/ssh' requires :public_ip_address, :username options[:key_data] = [private_key] if private_key options[:port] ||= ssh_port Fog::SSH.new(public_ip_address, username, options).run(commands, &blk) end