summaryrefslogtreecommitdiff
path: root/lib/net/ssh/proxy/jump.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/ssh/proxy/jump.rb')
-rw-r--r--lib/net/ssh/proxy/jump.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/ssh/proxy/jump.rb b/lib/net/ssh/proxy/jump.rb
index 0630bd8..a5de7d9 100644
--- a/lib/net/ssh/proxy/jump.rb
+++ b/lib/net/ssh/proxy/jump.rb
@@ -38,7 +38,7 @@ module Net
config = connection_options && connection_options[:config]
uri = URI.parse("ssh://#{first_jump}")
- template = "ssh"
+ template = "ssh".dup
template << " -l #{uri.user}" if uri.user
template << " -p #{uri.port}" if uri.port
template << " -J #{extra_jumps}" if extra_jumps