|
|
@ -247,16 +247,19 @@ tar xpvf resize-disk.tar.xz -C / |
|
|
|
\end{minted} |
|
|
|
|
|
|
|
\subsubsection{配置 ssh server} |
|
|
|
配置允许root登陆,将/etc/ssh/sshd\_config中的: |
|
|
|
配置允许root登陆并解决登录慢的问题,将/etc/ssh/sshd\_config中的: |
|
|
|
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{bash} |
|
|
|
#PermitRootLogin prohibit-password |
|
|
|
GSSAPIAuthentication yes |
|
|
|
\end{minted} |
|
|
|
改为: |
|
|
|
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{bash} |
|
|
|
PermitRootLogin yes |
|
|
|
GSSAPIAuthentication no |
|
|
|
\end{minted} |
|
|
|
|
|
|
|
\subsubsection{清理并退出} |
|
|
|
删除临时文件,卸载文件系统: |
|
|
|
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{bash} |
|
|
|
apt-get clean |
|
|
|
exit |
|
|
|