add check for ssh2 when using ssh remote