On your putty session pass the remote command as /bin/ksh, this will prevent .profile from running.