aboutsummaryrefslogtreecommitdiff
path: root/src/connection/ssh.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection/ssh.lisp')
-rw-r--r--src/connection/ssh.lisp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/connection/ssh.lisp b/src/connection/ssh.lisp
index e885ba9..eb132f3 100644
--- a/src/connection/ssh.lisp
+++ b/src/connection/ssh.lisp
@@ -24,8 +24,9 @@
user)
(declare (ignore remaining))
(informat 1 "~&Establishing SSH connection to ~A" hop)
- (mrun "ssh" "-fN" hop)
- (make-instance 'ssh-connection :hostname hop :user user))
+ (let ((connection (make-instance 'ssh-connection :hostname hop :user user)))
+ (mrun "ssh" (ssh-host connection) ":")
+ connection))
(defclass ssh-connection (shell-wrap-connection)
((hostname