提权
sudo passwd root
允许root登录
nano /etc/ssh/sshd_config
-
输入 nano /etc/ssh/sshd_config 回车
-
2
找到
# Authentication: LoginGraceTime 120 PermitRootLogin without passwd StrictModes yes
-
3
把“PermitRootLogin without passwd”改成“PermitRootLogin yes”
-
Simply adding a password for root is not enough for Ubuntu 14.04 Server.
You also need to edit
/etc/ssh/sshd_config
,and comment out the following line:PermitRootLogin without-password
Just below it,add the following line:
PermitRootLogin yes
Then restart SSH:
service ssh restart
touch t.py nano t.py
cat t.py t1.txt > t2.txt
cat t1.txt t2.txt >> t.py
使用tree
原文链接:https://www.f2er.com/ubuntu/350477.htmlapt-get -y install tree
tree
效果如下