Skip to content

Instantly share code, notes, and snippets.

@hvmonteiro
Last active April 12, 2016 18:34
Show Gist options
  • Save hvmonteiro/b89c60a283c8c7469333 to your computer and use it in GitHub Desktop.
Save hvmonteiro/b89c60a283c8c7469333 to your computer and use it in GitHub Desktop.
Remote shellcheck execution through SSH (file: remote-shellcheck.bat)
@echo off
REM -- File: remote-shellcheck.bat
REM -- Author: Hugo Monteiro
REM -- URL: https://gist.github.com/hvmonteiro/b89c60a283c8c7469333/
REM -- Description: This script allows you to use shellcheck (bash shell syntax checker) that is installed
REM -- in a Linux machine, by connecting to it via SSH. IT worsk around the problem that shellcheck
REM -- no longer works on Windows.
REM -- Usage: you must use a windows command line SSH client (ex: cygwin ssh.exe command), generate
REM -- a SSH key for your windows, and add the *.pub key to your Linux ~/.authorized_keys so
REM -- that you are able to SSH to your Linux machine silently without prompting for a password.
REM -- Last Changed: 12-04-2016
REM --
d:\cygwin\bin\ssh.exe -q <user>@<hostname> shellcheck %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment