Skip to content

Instantly share code, notes, and snippets.

@hreese
Created September 21, 2016 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hreese/d929a2884d0c5d6c9dce6ce75a498db3 to your computer and use it in GitHub Desktop.
Save hreese/d929a2884d0c5d6c9dce6ce75a498db3 to your computer and use it in GitHub Desktop.
Minimal shell for ssh portforwarding only
#include <unistd.h>
#include <stdio.h>
#define ANSI_COLOR_RED "\x1b[31m"
#define ANSI_COLOR_GREEN "\x1b[32m"
#define ANSI_COLOR_YELLOW "\x1b[33m"
#define ANSI_COLOR_BLUE "\x1b[34m"
#define ANSI_COLOR_MAGENTA "\x1b[35m"
#define ANSI_COLOR_CYAN "\x1b[36m"
#define ANSI_COLOR_RESET "\x1b[0m"
int main(int argc, char const *argv[]) {
printf(ANSI_COLOR_RED "ssh port forwarding only" ANSI_COLOR_RESET "\n");
for(;;) pause();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment