Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added environment variable support for cmd-line arg defaults #1

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

philschwartzsonos
Copy link

Many of the cmd-line args can now be defaulted with env vars. Prior to this, every time I ran sshpt I'd need to specify the following cmd line args: -C -k -X -u <my_remote_username>

Now, I can set env vars in my .profile, .bashrc or similar:

SSHPT_KEYFILE=-
SSHPT_PASSWORDLESS=True
SSHPT_SSHCONFIG=/home/<my_local_username>/.ssh/config
SSHPT_USERNAME=<my_remote_username>

so now my typical command line is: sshpt -f hosts.txt "/some/cmd"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants