1、Ubuntu 系统设置 root 用户密码
新安装的ubuntu没有设置 root 用户密码,打开终端,输入
cpp
sudo passwd root
执行命令后依次输入密码

2、虚拟机设置网络适配器

3、Ubuntu 系统下搭建 FTP 服务器
cpp
sudo apt-get update
sudo apt-get install vsftpd
sudo apt-get install vim
sudo vim /etc/vsftpd.conf
默认情况下,"write_enable=YES"前面有一个"#"号,我们需要将其去掉,使能该配置。
重启ftp服务

4、Ubuntu 系统搭建 ssh 服务器
cpp
sudo apt-get install openssh-server //安装
ps -aux | grep ssh | grep -v grep //测试ssh服务是否开启
