title: Error opening terminal: xterm-256color
body: <p>When I try to <em>nano</em> something on my server I'm getting this error "Error opening terminal: xterm-256color." that I've never seen before, and on top of that <em>nano</em> used to work fine last week.  Even when I use <em>vi</em>, the file will open but I can't manipulate using normal <em>vi</em> commands.  When I press <code>i</code> to activate insert mode and then try to navigate the document, it just types an <code>A</code> or <code>B</code> or something.</p>
  
  <p>The only thing that changed is I lost my private key and had to generate a new one, so I had to upload the new public key to my server. Anyone know why this is happening?</p>
  
  <p>The server is running Ubuntu 8.04 Hardy.</p>
  
  <hr>
  
  <p><strong>SOLUTION</strong></p>
  
  <p>Open <em>Terminal</em>, select from the menu <em>Terminal > Preferences > Settings > Advanced</em> and under <em>Emulation</em> select "Declare terminal as: xterm-color not xterm-256color"</p>
  
  <p>Reference: <a href="http://ricochen.wordpress.com/2011/07/23/mac-os-x-lion-terminal-color-remote-access-problem-fix/" rel="noreferrer">http://ricochen.wordpress.com/2011/07/23/mac-os-x-lion-terminal-color-remote-access-problem-fix/</a></p>