ZoneEdit | OpenVPN | 3CX | QNAP | Security | Virtual | Downloads | VOIP | Windows | Blog | On-line Tools
SmartSection is developed by The SmartFactory (http://www.smartfactory.ca), a division of INBOX Solutions (http://inboxinternational.com)
Inside EMU.CC > Guide e Manuali > Windows > PSCP.exe -2- Esempi vari - seconda parte
PSCP.exe -2- Esempi vari - seconda parte
Published by Emu on 10/11/2009 (173 reads)
PSCP.exe - Esempi vari - seconda parte
To receive (a) file(s) from a remote server:

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

So to copy the file /etc/hosts from the server example.com as user fred to the file c:\temp\example-hosts.txt, you would type:

pscp fred@example.com:/etc/hosts c:\temp\example-hosts.txt

To send (a) file(s) to a remote server:

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

So to copy the local file c:\documents\foo.txt to the server example.com as user fred to the file /tmp/foo you would type:

pscp c:\documents\foo.txt fred@example.com:/tmp/foo

You can use wildcards to transfer multiple files in either direction, like this:

pscp c:\documents\*.doc fred@example.com:docfiles
pscp fred@example.com:source/*.c c:\source

However, in the second case (using a wildcard for multiple remote files) you may see a warning saying something like ‘warning: remote host tried to write to a file called 'terminal.c' when we requested a file called '*.c'. If this is a wildcard, consider upgrading to SSH 2 or using the '-unsafe' option. Renaming of this file has been disallowed’.

This is due to a fundamental insecurity in the old-style SCP protocol: the client sends the wildcard string (*.c) to the server, and the server sends back a sequence of file names that match the wildcard pattern. However, there is nothing to stop the server sending back a different pattern and writing over one of your other files: if you request *.c, the server might send back the file name AUTOEXEC.BAT and install a virus for you. Since the wildcard matching rules are decided by the server, the client cannot reliably verify that the filenames sent back match the pattern.

Other articles in this category Hits
Abilitare il desktop remoto da remoto
199
Comandi Windows - Sintassi
365
Come creare il CD "Ultimate Boot CD for Windows"
270
Come far vedere a Windows XP più di 4GB di ram
346
Come installare e configurare UltraVNC
247
Come installare VNC su una macchina remota.
229
Come masterizzare in immagine [bin,ccd,cue,img,iso,nrg,sub]
199
Come recuperare le password di windows con Ophcrack
216
Craccare la password di administrator di XP, 2003 e Vista
619
Emule - Sicurezza: Come configurare IpFilter
3
Halite. Un client Torrent open-source
53
Il modo più veloce per spegnere il pc via comando..
90
Manuale ROBOCOPY
2
Ophcrack Live CD: Craccare la password di windows
247
PSCP.exe -1- Copiare files su un server remoto. Esempi vari
184
PSCP.exe -2- Esempi vari - seconda parte
174
Resettare la password di domain admin su windows server
180
Sbloccare i file e le cartelle utilizzati da un’altra applicazione FREEWARE
245
Spostare la cartella di Google su un altro volume (via regedit)
173
Tutorial Installare Ubuntu su Pc con Windows
199
Tutorial: Come installare Windows 7 sul proprio pc
331
Usare DiskPart.exe in alternativa a Disk Management
169
Utilizzare contemporaneamente dhcp e ip statici
94
Win XP e CPU cache. Come impostarla manualmente nel registry
75
I commenti sono proprietà dei rispettivi autori. Non siamo in alcun modo responsabili del loro contenuto.
GioPerego Links

Emulatori.it
Ultimate Boot CD fo..
Bart's Preinstalled..
VLC Media Player
Emule
Nettica.com
avast! Home Edition
zoneedit.com
Mount Image Pro v3
mikuspace Foto Blog
il blog tecnico di ..
Software based VoIP..
OpenVPN
QNAP
Cisco Systems
Snon Voip Phone
PayPal
Google Italia
LinkSys
Dlink
Register.it
Aruba - The Web Hos..
Joomla
XOOPS
 |