SCP (Secure Copy) is a secure protocol based on SSH used for transferring files between computers.

learn more… | top users | synonyms

0
votes
1answer
166 views

Expect not working using -c arguments

So I have an expect script like this that works: #!/usr/bin/expect spawn scp me@myserver.com:* . expect { password: {send "mypassword"; exp_continue} } Based on the man page for expect, I think I ...
0
votes
1answer
162 views

Hash verification when pushing via SCP

is there a simple way to verify file hash when uploading via SCP? I need a bash shell script, because the upload will be done automatically by cron. I use this command: scp backup.tar.gz ...
1
vote
1answer
542 views

“Open in PuTTY” command of WinSCP: Can I scp files from Linux back to Windows from terminal in opened PuTTY instance?

I use the command "Open in PuTTY" in WinSCP. A PuTTY window pops up, but I cannot find a way to scp files from Linux back to Windows using terminal command line in PuTTY. Do you guys think this is ...
0
votes
3answers
72 views

Ubuntu SSH communcation

I have installed to 2 Ubuntu on VMware and i m trying to communicate between 2 machines using ssh. I made the following changes Updated the etc/host files on 2 machines Master and Slave with ips ...
0
votes
2answers
108 views

transfer hundreds of files specified on a list between two servers

I need to download 800 files from a server to my server. These files have different names and they're in different subdirectories in the remote server, but I have their names on a list. How can I do ...
0
votes
1answer
383 views

How to scp files that match a particular date and name pattern

If I run an ls -ltr on myserver.org:/some/path/dir: -rw-r--r-- 1 devops devops 20727251 Mar 16 08:02 herp1.derp -rw-r--r-- 1 devops devops 24542012 Mar 16 08:03 herp2.derp -rw-r--r-- 1 ...
0
votes
1answer
232 views

How to verify SCP transfer was successful?

I'm using http://phpseclib.sourceforge.net/ to make an SSH connection to my server, then execute an SCP command to transfers to a remote server. The library's exec() method returns a string (looks ...
4
votes
2answers
1k views

How can I scp when path and / or filename to copy has spaces?

I have in a remote remote_host a file like this: \home\user\path with spaces\filename with spaces.ext And I want to scp it to current dir .. How can I do that? Thanks!
1
vote
1answer
494 views

Is there a way to not override existing files when using pscp?

I am trying to copy files from a folder on a server using a batch file. However I don't want the files in the destination folder to be overridden. This is what i have: set /p address=ip address: ...
3
votes
2answers
392 views

SSH as Normal User --> SU --> SCP as Root

I'm on a Win7 box connecting to a linux server. From reading: http://winscp.net/eng/docs/faq_su it looks like I need to open my SCP connections as the particular user. When I connect via SSH, I can ...
0
votes
2answers
257 views

How to copy all directory from another host to current host on Linux

My current files and directories are hosted with Godaddy.com and they don't allow scp over to another host, and I want to get all the pictures for wordpress under wp-content/uploads/* but when I tried ...
1
vote
1answer
405 views

Non-interactive one-time ssh && scp for 100 servers

I need to copy some data from a cluster of very restricted machines through the network which currently has DNS problems (so some connections are bizarrely not working). I found that the only way to ...
2
votes
0answers
2k views

scp “lost connection” but ssh works fine

A server I can ssh into fine has begun refusing to scp. $ scp ~/tmp/foo user@some.example.com:~/tmp/ lost connection With scp -v -v I can see the connection succeeds and the transfer appears to ...
1
vote
3answers
458 views

scp between an AWS EC2 linux server and my home machine

I'm currnetly trying to retrieve files from my AWS EC2 Linux server to my Windows 7 PC using scp I'm a bit of a Linux newbie and from the server I'm currently trying things like: scp transferMe.tar ...
0
votes
1answer
90 views

secure copy through two hosts

I need to copy files that are behind a firewall server using scp. normaly to login to the server I do the following ssh -p 5023 firewall.domainname.fr now i am in behind the firewall I connect to ...
2
votes
2answers
153 views

Is there something similar to scp for tunneling over RDP?

Similar to how you can scp over ssh, is there something similar for over rdp? I'm currently using the \tsclient\ (i.e. mapped drives) when on the remote server. But I wondering if there is a way of ...
1
vote
0answers
170 views

Under what circumstances does the scp command fail?

I have two linux(redhat 5.6, 64 bit) servers(hp proliant 380p g8), server1's eth0,eth2 bonded to bond0.Similarly server 2's eth0,eth2 bonded to bond0. server1's eth0 connects to cisco(3560 catalyst) ...
0
votes
0answers
263 views

trying to transfer a file from my computer to a unix server

I m trying to automate the deployment process wherein i follow the following steps- 1.Run a Ant Script to build a .ear file 2.Login to the unix server using putty(SSH Connection) providing the login ...
5
votes
3answers
4k views

How can I resume a large scp file transfer when using port forwarding?

I have a machine a couple of hops away, and I need to set up port forwarding in order to transfer files. Edit: To be clear, the multiple hops are needed in order to access the remote machine. From ...
0
votes
2answers
693 views

scp tranfer can't be done bothways. lost connection

I'm trying to transfer a file via ssh but it works only from PC1 to PC2 but it doesn't work backwards. My recievers firewall is disabled I've checked my ssh_config files and both are the same. ...
0
votes
2answers
2k views

Is it possible to execute a remote command via SCP in the same way as SSH?

I want to embed a remote execution command in an SCP command. Is that possible? It will save having to execute an SCP command first, then executing an SSH command on the transferred fiies. Is this ...
1
vote
1answer
1k views

SSH SFTP: transfer local directory to remote server

I can't seem to transfer a simple local folder to a remote server via SFTP or SSH. I feel like the issue has to do with absolute paths or home directories, but here's what I've tried: scp -r ...
5
votes
1answer
241 views

Why do you need to escape spaces when passing SCP filenames?

Anyone who's ever SCP'd knows that this probably doesn't work: scp foo.txt 'me@remote.net:foo bar.txt' For me on this one, I get: "ambiguous target". The man page for SCP doesn't explain why you ...
1
vote
1answer
602 views

WinSCP error setting up directory

I am getting the following error: Reading Remote Directory: Error changing directory to '/script=E:\Data\GmousCR12\bin\Get.sftp' Cannot get real path for '/script=E:\Data\GmousCR12\bin\Get.sftp' No ...
2
votes
0answers
194 views

Ubuntu SSHFS doesn't sync

I am trying to set up a Ubuntu-machine for web development, and thought i'd start working with SSHFS instead of the annoying FTP-protocol. I installed SSHFS through apt-get. I've created a folder in ...
1
vote
1answer
297 views

scp copying to localhost from remote server

I was wondering whether there's a way to copy files from remote server to localhost after i had already "ssh"ed into the remote host? i.e. after ssh: "scp file @local:~" (I know about scp ...
2
votes
1answer
88 views

Smarter scp that duplicates part of the local path

Many, many times a day, I find myself wanting to copy one or two files from ~/src/some/path/or/other and ~/src/some/different/path on my local machine, to /srv/www/some/path/or/other and ...
-1
votes
1answer
101 views

Copying entire dir using SFTP [duplicate]

In sftp> put * or get * doesnt get the hidden files or directories inside the dir. What to do if I want to use sftp to copy entire dir,along with subdirs that are hidden also? For example a .git ...
2
votes
1answer
897 views

“stdin: is not a tty” message from scp

I got this message when I copy file using scp to CentOS server "stdin: is not a tty". What it means and how I make it go away? The transfer is ok.
2
votes
1answer
455 views

Skipping a file from downloading using scp

Just a simple question. Say I have a bunch of *.txt files on a server somewhere and I'm using the standard scp command to download *.txt to my computer. However, say one of the files, call it ...
1
vote
2answers
9k views

How to use PSCP to copy file from Unix machine to Windows machine where target path has spaces?

I am having a problem using PSCP in a C# program to copy a file from a Unix machine to a Windows machine. The problem only happens when the target folder on the Windows machine has a space in it. ...
2
votes
2answers
218 views

Cannot scp file to an EC2 instance that I can ssh to

I have two EC2 instances that were created from the same AMI, which was created from the Amazon Linux AMI. These are running mysql in a master-slave configuration. The security group ("db") is ...
4
votes
2answers
158 views

SCP giving out a blank line and not transfering files

As said, an image is worth a thousand words: This blank line is weird. SSH works correctly. Some verbose mode shows me this: I just... scp never gave up on me. Looks like it did today.
2
votes
3answers
404 views

SCP files between 2 vms

I have 2 virtual machines. The 1st virtual machine is where the source files are stored. The 2nd virtual machine is where my bash script is and it should copy files from source to my 2nd virtual ...
1
vote
1answer
1k views

Is it possible with SCP to only copy files that match a certain date?

Is it possible to have SCP filter the files that it copies by date, e.g., if you wanted to copy all files that were created on 12/29 and ignore the others?
1
vote
1answer
253 views

scp over ec2 ignoring a directory?

Facing a problem while using scp to download a file from AWS EC2 instance(to which I have assigned a elastic IP),scp is ignoring the my-store folder. But when i access the ec2 instance over ssh, I can ...
0
votes
1answer
198 views

copy a file with scp, which is not stored on a filesystem

I need to copy a .war file, which i currently just can reach over the UI with "http://server:host/directory/my_file.war". So its not stored on a fileserver. Im logged on a server A and the file needs ...
0
votes
0answers
375 views

scp not working

I need to copy a file from remote machine(which is using Windows OS) to my machine(It also uses Windows OS) using ssh in java.So i used JSch sample code exec to do this work.In this i gave scp command ...
0
votes
3answers
53 views

Perform shell operation through secure shell

Is it possible to perform a shell operation from a bash script through a secure shell. Here is an example of why you may want to do this. Lets say you have a simple unix operating system that you ...
0
votes
0answers
302 views

Automation script to SCP from UNIX to Window Server

I'm new to server/Unix trying to transfer file between AIX to Windows I'm trying to create SCP or SFTP script that will run on cron and transfer text file on /usr/apps/11.111.1.11.log file to window ...
1
vote
1answer
369 views

pscp connection time out

Trying to copy from Ubuntu Server to my Windows 7 machine. SSH'd into the server using Putty, navigated to the directory containing my file and ran the command: pscp -P 2222 FileToCopy.txt ...
0
votes
2answers
103 views

If I scp a file through an intermediate server, is the file stored temporarily on the server?

For the sake of simplicity (I find it easier to remember names than arbitrary letters), I will dispense with letters and use names to refer to the machines in this scenario. Say I have two machines, ...
1
vote
1answer
904 views

scp -q isn't quiet between different hosts

So scp -q file host:file and scp -q host:file file are both quiet, i.e. don't give the progress meter. But when I run scp -q host1:file host2:file, I still get the progress meter as well as a ...
1
vote
1answer
2k views

Is there a way to pause an already running scp process?

I'm copying a large file using scp, and realized that the destination may not have enough space for it to finish. Is there a way I can pause it, possibly for several hours, and resume later? Also, if ...
1
vote
1answer
661 views

How to automating Putty Shell task on Windows 7?

I am interested in connecting by shell (Putty or another tool) (I have cygwin and OpenSSH ) This is what I wish to accomplish: Upload some files by scp (from Windows 7) Connect to the remote server ...
3
votes
0answers
536 views

scp no such file

I'm on mac osx getting a file from a remote server. I run the following command: scp remoteusername@remotehostip:/home/username/file.tar ./Users/localusername/Documents/specialdir I get the ...
0
votes
1answer
375 views

Is there an equivalent 'cp --backup=numbered' option for copies across the network?

I'm looking to simulate what cp --backup=numbered does using scp or another network copy command. Any suggestion?
2
votes
1answer
483 views

can i use PuTTY to transfer files to my PC?

i'm having trouble connecting to our cluster with winSCP can i use PuTTY as an alternative? How do i transfer files to my PC using PuTTY or some other alternative for winSCP?
1
vote
2answers
2k views

Copy data from a remote Linux box to my Windows desktop

I use Putty to login to the remote server and then set the environment and change the path to a particular directory. Now from this dir, I need to copy a folder to my desktop which is Windows? How ...
0
votes
3answers
301 views

Getting rysnc and scp to work well on Mac OSX

I am seeking to back up an encrypted volume used by Virtual Box on one OS X machine to another using rsync (I will eventually stick this into cron). This is the command line (I am sharing public keys ...