title: How to run ssh login without sudo password?
body: <p>I'm sure this is trivial but my googling has mainly led me to people trying to connect via ssh without a password.</p>
  
  <p>What I am trying to do is setup my ssh connection command to not require my sudo password to run the command, I already have my public key setup so I can connect fine.</p>
  
  <p>I can make it so I dont need it by adding using visudo </p>
  
  <pre><code>&lt;username&gt; ALL=(ALL:ALL) NOPASSWD:ALL
  </code></pre>
  
  <p>However I dont want to allow all commands to be run without my sudo password, only specifically the connection to my remote server e.g.</p>
  
  <pre><code>sudo ssh -i /home/foo/.ssh/id_rsa bar@123.123.123.123 -p12345
  </code></pre>
  
  <p>How do I modify my sudoers file to not require my sudo password for specifically (or as specifically as possible) the above?</p>