安装readline

$ sudo yum install readline readline-devel

安装

$ sudo yum install -y bash-completion

安装完重新登录下ssh即可.