title: Connect to a server using SSH and a pem / key with golang
body: <p>I'm trying to connect to an amazon AWS linux server with a key using the [ssh][1] package of Go programming language. However the package documentation is a bit cryptic/confusing. Does anyone know how to connect through ssh using a key  or at least if it's possible ? What bothers me is that in the [Dial][3] example it says </p>
  
  <pre><code>// An SSH client is represented with a ClientConn. Currently only
  // the "password" authentication method is supported.
  </code></pre>
  
  <p>I basically want to mimic the ssh -i x.pem root@server.com behavior and execute a command inside the server ( e.g. <code>whoami</code> ) </p>