Skip to content

Commit

Permalink
Support ssh config aliases (#395)
Browse files Browse the repository at this point in the history
Co-authored-by: John Collins <john.collins@braincorp.com>
  • Loading branch information
John Collins and John Collins authored Aug 6, 2020
1 parent bfe3086 commit 73266a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion anaconda-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,10 @@ called when `anaconda-mode-port' will be bound."
anaconda-mode-ssh-process-buffer
"ssh" "-nNT"
"-L" (format "%s:localhost:%s" (anaconda-mode-port) (anaconda-mode-port))
(format "%s@%s" (pythonic-remote-user) (pythonic-remote-host))
(if (pythonic-remote-user)
(format "%s@%s" (pythonic-remote-user) (pythonic-remote-host))
;; Asssume remote host is an ssh alias
(pythonic-remote-host))
"-p" (number-to-string (or (pythonic-remote-port) 22)))))
;; prevent race condition between tunnel setup and first use
(sleep-for anaconda-mode-tunnel-setup-sleep)
Expand Down

0 comments on commit 73266a4

Please sign in to comment.