Why Bash unable to find command even if $PATH is specified properly?

view story

http://unix.stackexchange.com – I am specifying path to my command in the file /etc/profile: export PATH=$PATH:/usr/app/cpn/bin My command is located in: $ which ydisplay /usr/app/cpn/bin/ydisplay So, when I performing "echo $PATH" output is looks like: $ echo $PATH ...:/usr/app/cpn/bin And everything is OK, but when I am trying to launch my command via SSH I am getting error: $ ssh ydisplay $ bash: ydisplay: command not found But the my path is still present: $ ssh echo $PATH ...:/usr/app/cpn/bin Please explain me why Bash unable to find ydisplay during SSH session and how to properly co (HowTos)