跳至主要內容
sftp文件传输以及用户配置

sftp文件传输以及用户配置

#ssh 这里默认安装完ssh,ssh安装见[[ssh安装以及配置]] 首先创建传输文件用户

useradd web #这个命令是直接创建用户
adduser web #这个命令创建用户时需要创建用户密码,并同时创建用户组

Mr.Lexon大约 2 分钟environmentsshsftpenv-configuration
ssh安装以及配置

ssh安装以及配置

安装的系统为ubuntu20.04 添加apt源:

vim /etc/apt/sources.list

写入以下网址(阿里云):

deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse


Mr.Lexon大约 1 分钟environmentsshenv-configuration