-
Notifications
You must be signed in to change notification settings - Fork 1
Adding the vSSH CLI to your path
Atanas Chuchev edited this page May 17, 2022
·
1 revision
To report a problem or share an idea, use Issues; and if you have a suggestion for fixing the issue, please include those details, too.
Got questions or want to discuss something with our team? Join us on Slack!
After downloading the vSSH CLI, you can add it to the operating system's PATH
environment variable.
To add the vSSH CLI to your PATH, use the following instructions appropriate for your operating system.
- Find your shell's profile script in your user directory. If you're not sure which shell you have, run
echo $SHELL
.
$ ls -a ~
. .. .bash_logout .bash_profile .bashrc Desktop Documents Downloads
- Bash –
.bash_profile
,.profile
, or.bash_login
- Zsh –
.zshrc
- Tcsh –
.tcshrc
,.cshrc
, or.login
- Add an export command to your profile script. The following command adds your local bin to the current
PATH
variable.
export PATH=/usr/local/bin:$PATH
- Reload the updated profile into your current session.
$ source ~/.bash_profile
- In a Windows Command Prompt, use the
where
command with the/R path
parameter to find thevssh
file location. The results return all folders containingvssh
.
c:\> where /R c:\ vssh.exe
c:\Program Files\Venafi\vssh\vssh.exe
- Press the Windows key and enter environment variables.
- From the list of suggestions, choose Edit environment variables for your account.
- Choose PATH, and then choose Edit.
- Add the path you found in the first step into the Variable value field, for example, c:\Program Files\Venafi\vssh\vssh.exe
- Choose OK twice to apply the new settings.
- Close any running command prompts and reopen the command prompt window.