This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Modify .bashrc to startup the ssh agent | |
| tmpFile=/tmp/__setup.tmp | |
| cat > $tmpFile << 'BASHRC' | |
| # JBY-SSH-AGENT | |
| if [ -z "$SSH_AUTH_SOCK" ]; then | |
| # Check for a currently running instance of the agent | |
| RUNNING_AGENT="`ps -ax | grep 'ssh-agent -s' | grep -v grep | wc -l | tr -d '[:space:]'`" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Modify .bashrc to startup the ssh agent | |
| tmpFile=/tmp/__setup.tmp | |
| cat > $tmpFile << 'BASHRC' | |
| # JBY-SSH-AGENT | |
| if [ -z "$SSH_AUTH_SOCK" ]; then | |
| # Check for a currently running instance of the agent | |
| RUNNING_AGENT="`ps -ax | grep 'ssh-agent -s' | grep -v grep | wc -l | tr -d '[:space:]'`" |
NewerOlder