Skip to content

Instantly share code, notes, and snippets.

@paresharma
Created January 30, 2017 06:36
Show Gist options
  • Select an option

  • Save paresharma/bfc3e315903a5d9486342d625caa655f to your computer and use it in GitHub Desktop.

Select an option

Save paresharma/bfc3e315903a5d9486342d625caa655f to your computer and use it in GitHub Desktop.

Revisions

  1. paresharma created this gist Jan 30, 2017.
    4 changes: 4 additions & 0 deletions .sshme
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #!/bin/bash
    PASSWORD=$(echo $(security 2>&1 >/dev/null find-generic-password -ga sshme) | cut -d\" -f2)

    ~/.sshme.exp $1 $PASSWORD