yeppe
yeppe

Reputation: 689

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. 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. 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

get "name of the file on server" "my local path where I want to transfer"

Upvotes: 0

Views: 593

Answers (1)

ULick
ULick

Reputation: 999

# 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

Upvotes: 1

Related Questions