From c859beaf4e5611cca6c69b520bb38013de42b232 Mon Sep 17 00:00:00 2001 From: Bruno Pinto Date: Wed, 13 Apr 2022 00:57:05 +0100 Subject: [PATCH] fix(ssh): pass ssh options to the ssh command --- lib/ey-core/cli/ssh.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ey-core/cli/ssh.rb b/lib/ey-core/cli/ssh.rb index ccf0c5e..f015791 100644 --- a/lib/ey-core/cli/ssh.rb +++ b/lib/ey-core/cli/ssh.rb @@ -142,7 +142,7 @@ def handle host = server.public_hostname name = server.name ? "#{server.role} (#{server.name})" : server.role puts "\nConnecting to #{name} #{host}".green - sshcmd = Escape.shell_command((ssh_cmd + ["#{user}@#{host}"] + [cmd]).compact) + sshcmd = Escape.shell_command((ssh_cmd + ssh_opts + ["#{user}@#{host}"] + [cmd]).compact) puts "Running command: #{sshcmd}".green system sshcmd exits << $?.exitstatus