Skip to content

Improve SSH behavior in cider-connect #1544

@cap10morgan

Description

@cap10morgan

As per the discussion in #1142, we should improve how and when CIDER decides it needs to try an SSH connection to a remote host in cider-connect.

The preferred option seems to be to do 2 things:

  1. Add a custom variable for SSH files to sniff for ports, like '(~/.ssh/known_hosts ~/.ssh/config). It's value would default to '(~/.ssh/config).
  2. Have a user level logical cider-sniff-for-ports-when-connected-only and use (file-remote-p file nil t) to check if there is already an emacs connection open outside of cider to that server.

This should serve to make cider-connect's behavior less surprising for users. Currently it tries to SSH to any hostname in ~/.ssh/known_hosts which is often incorrect behavior and is difficult to debug in those cases.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions