Total Pageviews

Sunday, January 1, 2017

how to get file from remote unix linux or solaris server using ftp, sftp or scp

ftp servername
to get the file from the host machine use

get filename

to get multipile files use
mget filename


$ sftp user@host
Connected to host
sftp> cd /usr/local/folder
sftp> pwd
Remote working directory: /usr/local/folder
sftp> put myfile.tgz    (to put file at other server)
sftp> get myfile.tgz    (to get file from other server)
 
above commands can also be used with just ftp if you can cant use secure 
 
 
or use scp
 
scp username@host.example.com:/etc/file.txt .
  

No comments:

Post a Comment