windows - Plink does not source bashrc or bash_profile on connect -
I am trying to use plink as a SSH option on the stretch, but I think that when the eyelid Remote Linux connects to the machine, this source is not .bash_profile or .bashrc.
Should I Make a Different Dot File? Or is there another option?
For example, my bashrc file adds a directory on my path.
> Where it will:
Okay, but it appears that the source will not file either by plink sending only one command.
Is there any remedy?
If you connect a remote host via ssh or plink, then the default of the login account The shell will start. If that is the shell, then bash will automatically be the source. Bash_profile
If you are asking a remote host to execute a command via ssh or plink, then just try to execute that command.
What you want to achieve can be done by using ForcedCommand See also here:
Set the compulsory command to do 2 things as a script:
- Run the original command (env vars $ SSH_ORIGINAL_COMMAND or $ SSH2_ORIGINAL_COMMAND) to run the .bash_profile source < / Ol>
Comments
Post a Comment