While using ssh command and not able to decrypt the files . if run manually and it working fine . that means connect to server and running the pgp command.
Bash reads different initialization files depending on whether it is interactive and whether it is a login shell. When you log in by hand and type pgp you will be in an interactive login shell. When you provide commands on the ssh command line you are switching to a non-interactive shell. The PATH to pgp is probably set up in one of the initialization files that is only read by interactive shells. The simplest fix would be to specify the full path to pgp. Alternatively try sourcing the files that bash loads automatically when started interactively.
@Wish thanks for quick reply.
Cloud you please help me ,how to specify the full path pgp or sourcing the files that bash loads automatically when started interactively.