30
30
如何用FTP或SSH从命令行上传文件?
Advertisement
我以前从来没有做过这个,我正在创建一个bash shell脚本来帮我做这个。我也将通过ssh连接来做一些事情(我已经知道如何做)。所以也许有办法通过ssh上传文件,这样我就可以在一个连接中完成所有的工作?
如何才能做到这一点?
#!/bin/sh
cd ./files-to-upload
#upload the files
Advertisement