Skip to content

Instantly share code, notes, and snippets.

@Sebastian1011
Created January 12, 2017 13:55
Show Gist options
  • Select an option

  • Save Sebastian1011/85218b7b92551fdc7e7f0bdcee10ec97 to your computer and use it in GitHub Desktop.

Select an option

Save Sebastian1011/85218b7b92551fdc7e7f0bdcee10ec97 to your computer and use it in GitHub Desktop.
status=$(ssh -o BatchMode=yes -o ConnectTimeout=5 [email protected] echo ok 2>&1)
if authored => ok
if notAuthored => permission denied
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment