Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

You would need to define $PATH in your ~/.bashrc file on target server, at the beginning of the file :

export PATH=$PATH:/home/user/bin

http://stackoverflow.com/questions/940533/how-do-i-set-path-such-that-ssh-userhost-command-workshttps://stackoverflow.com/questions/940533/how-do-i-set-path-such-that-ssh-userhost-command-works :

Bash in non-interactive mode reads the file ~/.bashrc

You would need to define $PATH in your ~/.bashrc file on target server, at the beginning of the file :

export PATH=$PATH:/home/user/bin

http://stackoverflow.com/questions/940533/how-do-i-set-path-such-that-ssh-userhost-command-works :

Bash in non-interactive mode reads the file ~/.bashrc

You would need to define $PATH in your ~/.bashrc file on target server, at the beginning of the file :

export PATH=$PATH:/home/user/bin

https://stackoverflow.com/questions/940533/how-do-i-set-path-such-that-ssh-userhost-command-works :

Bash in non-interactive mode reads the file ~/.bashrc

Post Migrated Here from serverfault.com (revisions)
Source Link

You would need to define $PATH in your ~/.bashrc file on target server, at the beginning of the file :

export PATH=$PATH:/home/user/bin

http://stackoverflow.com/questions/940533/how-do-i-set-path-such-that-ssh-userhost-command-works :

Bash in non-interactive mode reads the file ~/.bashrc