title: how to add commands in .ssh/authorized_keys
body: <p>I read on <code>man sshd</code> one can add post-login processing when a user logs in using a particular key:</p>
  
  <pre><code>environment="FOO=BAR" ssh-rsa AAA... keytag
  </code></pre>
  
  <p>But when I try to ssh into the system, the target host does not register the line and instead asks for a password. What is the right way of adding this? I would like to do something like</p>
  
  <pre><code>command="echo|mail -s ${USER},${HOSTNAME} a.monitored.email@example.com" ssh-rsa AAA... keytag
  </code></pre>
  
  <p>I am using Suse SLE 11 SP2.</p>
  
  <p>Thanks
  Dinesh</p>