Skip to content

LazySSH breaks symbolic link to SSH config #96

Description

@disafronov

Checks

LazySSH Version

0.3.0

Operating System

macOS (darwin/arm64)

Description

When using LazySSH to manage entries in the SSH configuration file, an issue occurs if the config is a symbolic link. LazySSH dereferences the link and writes changes to the real file, instead of leaving the link intact.

This breaks the directory structure and prevents proper management of the configuration via symbolic links.

Steps to Reproduce:
1. Create a symbolic link to your SSH config file in any directory.
2. Run LazySSH and make changes to the config.
3. Observe that the symbolic link is dereferenced and changes are written to the actual file.

Expected Behavior:
LazySSH should leave the symbolic link intact and apply changes through it.

Actual Behavior:
LazySSH dereferences the symbolic link and overwrites the real config file.

Impact:
Breaks directory structure and prevents proper management of the configuration via symbolic links.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions