Executing script when user connects via ssh
<p>I'd like to create an interface when a specific user connects via ssh, for example:</p>

<p>User: xxx</p>

<pre><code>ssh xxx@10.10.10.10
</code></pre>

<p>Interface:</p>

<pre><code>1. Configuration
2. Status
3. Reboot
...
</code></pre>

<p>In other words, It needs to run a script when a specific user connects. I'd like to generate an interface for the user, as the Clouds do.</p>

<p>I don't need the script, I just want to know a way to execute a script when the user connects, instead he executes the script manually.</p>