解决 ubuntu 使用root登录 ssh 报错: password authentication failed…
sudo vi /etc/ssh/sshd_config
找到PermitRootLogin without-password
,改为PermitRootLogin yes
。
最后重启SSH服务
sudo service ssh restart
解决 ubuntu 使用root登录 ssh 报错: password authentication failed…
sudo vi /etc/ssh/sshd_config
找到PermitRootLogin without-password
,改为PermitRootLogin yes
。
最后重启SSH服务
sudo service ssh restart
问题:SeccureCRT LINUX终端VI不显示彩色
现象: VI不显示颜色,而是使用下划线代替颜色.
分析: 这个问题是由变量TERM的值不合适导致的,运行命令echo $TERM
显示:vt100
解决方法:
在~/.bashrc(或.profile环境变量文件)中设置$TERM为:xterm-color,如下所示:
export TERM=xterm-color
然后运行命令: source .bashrc
后即可显示颜色。