Prompt when key has changed?

Open
#211 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
powershell
Domain
security

Research direction

Start by tracing the Posh-SSH connection path and its registry-based cached-key handling, then compare the related behavior in the rencli ssh project mentioned in the report. Clarify the expected prompt and acceptance behavior for a key mismatch, including how an accepted replacement key is stored; the issue is complete when this behavior is defined and covered for affected connections.

Written by the indexing model from the issue text.

Description

Thank you for all of your work on this module - it certainly makes my teams job much easier and is much appreciated!

We ran into an issue this week - as we manage a network on 700 routers and switches and we use powershell and this module for our automation. We were having an issue connecting to a handful of devices - getting the error message "key exchange negotiation failed". We have dns entries for all of our routers. The confusing part was, when I connect to the IP, it would error. DNS name would succeed.

After some debugging in this and the rencli ssh project I found that this was due to the key not matching the cached key in the registry. Turns out that our field team had replaced these problem devices.

Would it be possible (or even a good idea) to prompt that the key does not match and ask to accept??

Dominant language
PowerShell
Stars
1.1k
Forks
222
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from darkoperator/Posh-SSH

All issues in darkoperator/Posh-SSH

Similar issues

More Security issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.