Embed
Email

FTP - ACTTECH

Document Sample

Shared by: xiaohuicaicai
Categories
Tags
Stats
views:
0
posted:
10/27/2011
language:
English
pages:
5
To copy files recursively from a local machine to a Linux server use the following command from a command window

pscp -r -pw password c:\temp\ root@ipaddress:/target directory

Note: The \ at the end of the c:\temp\ is important because if it is not there it will create a temp directory



To copy a single file from your local machine to the remote server

pscp -pw password c:\temp\myfile.txt root@ipaddress:/target



To copy a file from the remote server to your local machine c:\temp use the following example

pscp -pw password root@IPAddress:/target directory/file you want to copy c:\temp







More Putty utils and information available from the PuTTY Download Page

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html





Usage: pscp [options] [user@]host:source target

pscp [options] source [source...] [user@]host:target

pscp [options] -ls [user@]host:filespec

Options:

-V print version information and exit

-pgpfp print PGP key fingerprints and exit

-p preserve file attributes

-q quiet, don't show statistics

-r copy directories recursively

-v show verbose messages

-load sessname Load settings from saved session

-P port connect to specified port

-l user connect with specified username

-pw passw login with specified password

-1 -2 force use of particular SSH protocol version

-4 -6 force use of IPv4 or IPv6

-C enable compression

-i key private key file for authentication

-batch disable all interactive prompts

-unsafe allow server-side wildcards (DANGEROUS)

-sftp force use of SFTP protocol

-scp force use of SCP protocol

nd from a command window

Transfers files to and from a computer running a File Transfer Protocol (FTP) server service such as Internet Information Servi

Ftp can be used interactively or in batch mode by processing ASCII text files.



Syntax

ftp [-v] [-d] [-i] [-n] [-g] [-s:FileName] [-a] [-w:WindowSize] [-A] [Host]

Command-line options

-v -v : Suppresses the display of FTP server responses.

-d -d : Enables debugging, displaying all commands passed between the FTP client and FTP server.

-i -i : Disables interactive prompting during multiple file transfers.

-n -n : Suppresses the ability to log on automatically when the initial connection is made.

-g -g : Disables file name globbing. Glob permits the use of the asterisk (*) and question mark (?) as wildcard

-s -s:FileName : Specifies a text file that contains ftp commands. These commands run automatically after ftp

-a -a : Specifies that any local interface can be used when binding the FTP data connection.

-w -w:WindowSize : Specifies the size of the transfer buffer. The default window size is 4096 bytes.

-A -A : Logs onto the FTP server as anonymous.

host Host : Specifies the computer name, IP address, or IPv6 address of the FTP server to which to connect. Th

! ! - Runs the specified command on the local computer

? ? - Displays descriptions for ftp commands

Client commands

append append - Appends a local file to a file on the remote computer

ascii ascii - Sets the file transfer type to ASCII, the default

bell bell - Toggles a bell to ring after each file transfer command is completed (default = OFF)

binary binary - Sets the file transfer type to binary

bye bye - Ends the FTP session and exits ftp

cd cd - Changes the working directory on the remote computer

close close - Ends the FTP session and returns to the command interpreter

debug debug - Toggles debugging (default = OFF)

delete delete - Deletes a single file on a remote computer

dir dir - Displays a list of a remote directory's files and subdirectories

disconnect disconnect - Disconnects from the remote computer, retaining the ftp prompt

get get - Copies a single remote file to the local computer

glob glob - Toggles filename globbing (wildcard characters) (default = ON)

hash hash - Toggles hash-sign (#) printing for each data block transferred (default = OFF)

help help - Displays descriptions for ftp commands

lcd lcd - Changes the working directory on the local computer

literal literal - Sends arguments, verbatim, to the remote FTP server

ls ls - Displays an abbreviated list of a remote directory's files and subdirectories

mdelete mdelete - Deletes one or more files on a remote computer

mdir mdir - Displays a list of a remote directory's files and subdirectories

mget mget - Copies one or more remote files to the local computer

mkdir mkdir - Creates a remote directory

mls mls - Displays an abbreviated list of a remote directory's files and subdirectories

mput mput - Copies one or more local files to the remote computer

open open - Connects to the specified FTP server

prompt prompt - Toggles prompting (default = ON)

put put - Copies a single local file to the remote computer

pwd pwd - Displays the current directory on the remote computer (literally, "print working directory")

quit quit - Ends the FTP session with the remote computer and exits ftp (same as "bye")

quote quote - Sends arguments, verbatim, to the remote FTP server (same as "literal")

recv recv - Copies a remote file to the local computer

remotehelp remotehelp - Displays help for remote commands

rename rename - Renames remote files

rmdir rmdir - Deletes a remote directory

send send - Copies a local file to the remote computer (same as "put")

status status - Displays the current status of FTP connections

trace trace - Toggles packet tracing (default = OFF)

type type - Sets or displays the file transfer type (default = ASCII)

user user - Specifes a user to the remote computer

verbose verbose - Toggles verbose mode (default = ON)

as Internet Information Services.









nt and FTP server.





estion mark (?) as wildcard characters in local file and path names. For more information, see Ftp: Glob

ds run automatically after ftp starts. This parameter allows no spaces. Use this parameter instead of redirection (<).



ze is 4096 bytes.



erver to which to connect. The host name or address, if specified, must be the last parameter on the line.









king directory")


Shared by: xiaohuicaicai
Other docs by xiaohuicaicai
LOGFRAMES_ MONITORING AND EVALUATION
Views: 0  |  Downloads: 0
JELSApndx3SophLanguage
Views: 0  |  Downloads: 0
1997TrumpetCompetitionNYTimes
Views: 0  |  Downloads: 0
Eng_wk52_31
Views: 0  |  Downloads: 0
ENVIRONMENTAL MONITORING PROGRAMME FOR
Views: 0  |  Downloads: 0
Marketing - Ulster Business School
Views: 0  |  Downloads: 0
speech-swallowing
Views: 1  |  Downloads: 0
May_FY11_Awards_Report_Web
Views: 0  |  Downloads: 0
Related docs
By registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!