硬件及软件方面:
本地:Ubuntu16.04 在服务器为root账户
服务器:Ubuntu16.04
服务器公网ip:116.196.99.189
首先介绍,本地连接服务器,执行以下命令:
ssh root@116.196.99.189
接下来介绍上传文件到服务器
1.scp
scp filename username@remotehost:remotedirectory
此方法可以指定将文件上传到服务器的某个位置
2.rcp/rsh
详情见这里
3.ftp
首先连接服务器,然后执行:
sudo echo root>>user_list
sudo apt-get install vsftpd
service vsftpd start
exit
sftp root@116.196.99.189
put filename