PuTTY – Unable to use key file (OpenSSH SSH-2 private key)

Taking my private SSH key off my Linux box to use on my Windows machine, I get the following error trying to make the same connection:

Unable to use key file "C:\Program Files\PuTTY\id_rsa.dev-nfs" (OpenSSH SSH-2 private key)

After several fruitless Google searches, it turns out you have to import the key into PuTTY’s native format using PuTTYgen. Click Load in PuTTYgen and select the file you saved off your Linux box.

After it’s loaded you should get a message stating that key was successfully imported.

Click save private key and you are good to use the new file as your SSH key in PuTTY under Connection > SSH > Auth.

Silverlight

I came across a problem when using Visual Web Developer 2008 to develop for Silverlight. When adding an xmlns for your application to your UserControl, the compiler complains about a missing assembly reference.

<UserControl
        x:Class="SilverlightApplication1.Page"
        xmlns:My="clr-namespace:SilverlightApplication1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Width="400" Height="300">
    <Grid x:Name="LayoutRoot" Background="Black">
        <Canvas x:Name="surface">
            <My:Foo x:Name="bar" Canvas.Left="305" Canvas.Top="220"/>
        </Canvas>
    </Grid>
</UserControl>

You can fix this by removing the My:Foo element and building the project before adding the element back in.

Read, Reading, Will Read

Books finished recently:

  • Watchmen by Alan Moore
  • Hackers and Painters by Paul Graham
  • Legacy of Ashes by Tim Weiner

Books currently reading:

  • Super Crunchers by Ian Ayers

Books I should read next: ?

Get user from j_security_check

For future J2EE reference:

Call request.getUserPrincipal().getName().  The request can come from (HttpServletRequest)pageContext.getRequest()

Welcome

Welcome to Brent Roady’s blog.  Yes, THE Brent Roady.