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