Giter Site home page Giter Site logo

Comments (3)

FauxFaux avatar FauxFaux commented on June 8, 2024

I'm having problems reproducing this. I think I managed to do it once, but I can't see how now. Everything works as I expect, all the way down to the "move" dialog:

---------------------------
Security risk
---------------------------
The host key is cached in the Windows registry. Do you want to move it to a file? 

Yes     -> Move to file (and delete from registry)
No      -> Copy to file (and keep in registry)
Cancel  -> nothing will be done

---------------------------
Yes   No   Cancel   
---------------------------

I've tried many combinations, especially around the sshhostkeys directory not existing (either in the filesystem, or the registry, or both). The code is.. overly complex, however, so I could believe that it's broken. See file_verify_host_key and file_store_host_key.

Steps to reproduce, please? :)

from puttytray.

daschu117 avatar daschu117 commented on June 8, 2024

If I set StorageType to 1 in my saved session files, then they will behave correctly and the key will be stored in the sshhostkeys directory. All of my sessions from the old version of PuTTY Tray had gotten their StorageType set to 0, so this is why none of my old sessions would work correctly.

If I type a connection, it defaults to checking the registry UNLESS I click on "Sessions from file" even though it is already selected upon opening. Clicking "sessions from file" once and either opening or saving the new connection works as expected. This happens when saving a session too, even if "sessions from file" is already selected.

There is another fork of the vanilla PuTTY that has rewritten winstore.c available http://jakub.kotrla.net/putty/ . It handles session files by default seems to do a very good job at it. It doesn't write anything into the registry. Perhaps it would be a good reference?

from puttytray.

FauxFaux avatar FauxFaux commented on June 8, 2024

The removal of StorageType from the config files under GH-10 should resolve @daschu117's usecase (hah, I knew it was bad!).

This seems to work better now in every case I can think of.

from puttytray.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.