折腾本腾
🗒️DEBIAN 10切换ROOT用户登录
00 分钟
2021-7-2
2024-3-27
type
status
date
slug
summary
tags
category
icon
password
URL
Debian 10默认的一样不能用root用户登录,还是需要设置,方法如下:
一,打开终端,用普通用户登录
输入:su -
输入密码,切换到root用户
二,设置root用户登录
nano /etc/ssh/sshd_config
 
三,修改配置
PermitRootLogin yes
上面这一句后面改为yes,表示允许root用户登录
PasswordAuthentication yes
这一句表示,允许用密码登录
notion image
 
notion image
然后ctrl+o,回车保存,ctrl+x退出即可
 
ip addr
查看ip地址
 
export http_proxy="http://192.168.2.3:6152" export https_proxy="http://192.168.2.3:6152" export no_proxy="localhost, 127.0.0.1"
 
 
 
apt-get update
更新库
apt-get install samba apt-get install wget
网络工具
apt-get install inetutils-ping
apt-get install net-tools
apt-get install dnsutils
 
df -h 查看分区
 
 

评论
Loading...