added a new linux user keys garbage problem

On the linux server after a new user, ssh remote login with the new user will find some garbled up and down keys F1-F12 and so on. In fact, Linux is a server-side problem, because the new user uses a different shell

Open the target file

vim /etc/passwd 


This is a new indicator of the user's shell sh


The root user is using the bash

In addition to the problems garbled still have no command prompt login user name and host name, not the current path name

Simple process, so that the new user / ect / profile and /etc/bash.bashrc configuration [there should be follow-up article about these two files]
/ bin / SH read / bin / bash

Then use ssh to log back on it, if you do not want to re-visit

#立即生效
source /etc/passwd 

----------------
Copyright: CSDN part of the contents from the bloggers' xiezhaoxuan "
Original link: https://blog.csdn.net/xiezhaoxuan/article/details/73558367

Guess you like

Origin www.cnblogs.com/zzerx/p/12113487.html