# -*- mode: sh; sh-shell: bash -*-
# vim: set ft=bash:
# shellcheck shell=bash

### Access remote hosts

function ssh_ping ## [[user@]host] - Checks if one can connect to a remote host.
{
    ssh "$1" true
}

function ssh_cmd ## [ssh_args].. - Executes a ssh command.
{
    ssh "$@"
}

function ssh_bg_cmd ## [ssh_args].. - Executes a ssh command in the background.
{
    ( ssh "$@" & ) </dev/null >&/dev/null
}
