-
-
Notifications
You must be signed in to change notification settings - Fork 653
Closed
Labels
Description
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:
- 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)
. - 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.