title: ssh wrong number of arguments
body: <p>Referencing the <a href="http://net-ssh.rubyforge.org/" rel="nofollow">net-ssh API</a>, what's the "best" way to pass connection parameters which come from a yaml?</p>
  
  <p>error:</p>
  
  <pre><code>thufir@dur:~/ruby$ 
  thufir@dur:~/ruby$ ruby ssh.rb 
  {:host=&gt;"localhost", :user=&gt;"me", :port=&gt;123, :password=&gt;"mypassword"}
  /home/thufir/.rvm/gems/ruby-2.0.0-p247/gems/net-ssh-2.6.8/lib/net/ssh.rb:165:in `start': wrong number of arguments (1 for 2..3) (ArgumentError)
      from ssh.rb:14:in `&lt;main&gt;'
  thufir@dur:~/ruby$ 
  </code></pre>
  
  <p>code:</p>
  
  <pre><code>#!/usr/bin/env ruby
  require 'rubygems'
  require 'net/ssh'
  require 'yaml'
  require 'pry'
  
  conn = YAML.load_file('conn.yml')
  
  params = {:host =&gt; conn['host'], :user =&gt; conn['user'], 
            :port =&gt; conn['port'],:password =&gt; conn['password']}
  
  puts params
  
  Net::SSH.start(params) do |ssh|
    puts 'hi'
  end
  </code></pre>
  
  <p>yaml:</p>
  
  <pre><code>user: me
  password: mypassword
  port: 123
  host: localhost
  </code></pre>
  
  <p>is it possible to just pass one monolithic object?  Or, do you have to break it up into host, user, et. al.?</p>