To get rid of this innoing warning, login remote server and update the following file
/etc/bashrc
by adding the line to the top of file
[ -z "$PS1" ] && return
Run to check the file bashrc
head -n3 /etc/bashrc
Output
# /etc/bashrc [ -z "$PS1" ] && return