ssh配置
ssh配置文件所在位置:/etc/ssh/sshd_config
#允许密匙认证登录
RSAAuthentication yes
PubkeyAuthentication yes
#公匙保存目录
AuthorizedKeysFile .ssh/authorized_keys
#允许用户名密码登录
PasswordAuthentication yes
#允许root身份远程登录
PermitRootLogin yes
软件源配置
lsb_release -a
查看自己ubuntu的codename,下面是codename是focal的配置,如果是其他的修改codename就可以了。
# 阿里云源
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
# #測試版源
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
# 源碼
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
# #測試版源
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
# Canonical 合作夥伴和附加
# deb http://mirrors.aliyun.com/ubuntu/ focal partner
# deb http://mirrors.aliyun.com/ubuntu/ focal main
# 清华大学源
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# #測試版源
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
# 源碼
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# #測試版源
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
# Canonical 合作夥伴和附加
# deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal partner
# deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main