简体   繁体   English

Ksh脚本将文件从服务器传输到本地计算机

[英]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.

相关问题 如何将文件从AWS服务器传输到AWS服务器位于堡垒服务器之后的本地计算机 - How to transfer files from AWS server to local machine where the AWS server is behind Bastion server 如何将文件从本地磁盘传输到Cloudera虚拟机? (我浏览了SO,却一无所获) - How to transfer file from local disk to Cloudera Virtual Machine? (I've looked through SO and found nothing) 我该如何计划一个脚本,使用CRON和SCP每小时使用时间戳将文件从远程服务器复制到本地计算机? - How can I schedule a script to copy a file from a remote server to my local machine every hour with a time stamp using CRON & SCP? 将文件从本地机器复制到远程机器 - Copy file from local machine to remote machine 从一台linux机器到另一台linux机器的远程文件传输 - Remote File Transfer from one linux machine to another linux machine 通过php执行shell脚本时将文件传输到远程计算机的问题 - issue in transfer file to remote machine on executing shell script through php 激活 python3 后,从服务器上的本地计算机运行 python 脚本 - run a python script from local machine on the server after activating python3 以 root 身份在远程机器上无密码执行本地脚本到本地文件 - Passwordless execution of local script on remote machine as root into a local file 如何在服务器之间传输文件 - How to transfer file from server to server 无法从本地计算机连接到Apache服务器 - Cannot connect to apache server from local machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM