ssh_to_host() { ssh raphael@192.168.11.1 "$1" } VGA_INFO=$(ssh_to_host "lspci -nn | grep -i 'vga'") echo $VGA_INFO