protected function abortIfNoSSHConnection($server = null)
    {
        $server = $server ? $server : $this->hostNameForConfigFile();
        if (!$this->checkSSHConnection($server)) {
            $this->error("SSH connection to server $server doesn't works. Please run php artisan publish:init or publish:ssh");
            die();
        }
    }