we have strange behavior when I access to some remote machine with ssh
all machines are rhel 7.2 version
this is what we got
ssh server142
Last login: Thu May 27 09:44:13 2021 from server_ER
-bash: server: command not found
-bash: stratumweight: command not found
-bash: driftfile: command not found
-bash: $'rtcsync\r': command not found
-bash: makestep: command not found
-bash: bindcmdaddress: command not found
-bash: bindcmdaddress: command not found
-bash: keyfile: command not found
-bash: commandkey: command not found
-bash: $'generatecommandkey\r': command not found
-bash: $'\r': command not found
-bash: $'noclientlog\r': command not found
-bash: logchange: command not found
-bash: $'\r': command not found
-bash: logdir: command not found
so we checked the $PATH on the bad server and compare it to other good server but both $PATH output are the same output
example
echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
we also compared the bashrc between machines the good and the bad and also no differences
any hint what could be the reason for this issue?