[英]Ksh script to transfer a file from a server to local machine
Looking for a ksh script that could transfer a file from a server to my local machine path. 寻找一个可以将文件从服务器传输到本地机器路径的ksh脚本。 I don't want to transfer it from one server to another server.
我不想将其从一台服务器转移到另一台服务器。
I am not good at networking. 我不擅长网络。 Do I need to supply my ip address.
我需要提供我的IP地址吗? Any help is appreciated.
任何帮助表示赞赏。
I saw that Filezilla (UI s/w application that transfers file from server to local) runs this script in the background 我看到Filezilla(将文件从服务器传输到本地的UI s / w应用程序)在后台运行此脚本
get "name of the file on server" "my local path where I want to transfer" 获取“服务器上文件的名称”“我要在其中传输的本地路径”
# sftp [[user@]host[:file [file]]]
sftp me@somehost:data/interesting.dat from.somehost.interesting.dat
May ask for the password, depending on your ssh setup 可能会要求输入密码,具体取决于您的ssh设置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.