/root/.bashrc 添加如下代码
vi .bashrc
# Auto add env parameter $PROMPT_COMMAND when use non-Linux tty login by ssh.
if [ "$SSH_CONNECTION" != '' -a "$TERM" != 'linux' ]; thendeclare -a HOSTIPHOSTIP=`echo $SSH_CONNECTION |awk '{print $3}'`export PROMPT_COMMAND='echo -ne "\033]0;${USER}@$HOSTIP:[${HOSTNAME%%.*}]:${PWD/#$HOME/~} \007"'fi
/root/.bashrc为隐藏文件
在winscp右下角,有个显示隐藏文件的数目, 双击即可显示隐藏文件