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

learn more… | top users | synonyms

0
votes
3answers
146 views

SSH and SCP giving error

I am doing the same steps (Perform SSH and SCP Without Entering Password on openSSH). But it keep asking password prompt while scp or 'ssh -l' command run. Same steps i did few days back, it was ...
0
votes
2answers
86 views

Sudo and perform scp

Possible duplicate of scp to remote server with sudo I'm facing the following issue: A folder (with sub-folders) with files belonging to usr1:usr1 I login with another user usr2 usr2 can do sudo -u ...
0
votes
1answer
69 views

SCP a remote file with a specific name

I have a script on a remote server that creates a log each day with the date on the name and need to import it to my local machine everyday, but with my script it transfers all the files and I just ...
0
votes
1answer
224 views

group permissions for scp

We have a server running as a firebird user. We want to scp files to the server that are need by firebird but copied as another user: it-test. What is the best way to set that up on the ...
1
vote
1answer
7k views

Can SSH into remote server but can't SCP?

I can SSH into remote server just fine using private key authentication with prompt for passphrase. However I'm getting permission denied when I try to SCP a file using the same passphrase. Here's my ...
0
votes
1answer
307 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 ...
2
votes
1answer
738 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 ...
2
votes
4answers
2k views

How to ssh and scp directly through a server?

I connect to server2 in the following way: home$ ssh server1 server1$ ssh server2 server2$ I also sometimes need to scp this way, which takes some extra time: home$ ssh server1 server1$ scp ...
1
vote
1answer
326 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 ...
0
votes
3answers
79 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 ...
1
vote
1answer
835 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: ...
1
vote
1answer
723 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 ...
0
votes
1answer
364 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 ...
0
votes
1answer
562 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 ...
6
votes
4answers
9k views

bash: using scp in cron job fails, but runs succesfully when run from command line

I am trying to use scp in a bash script run by cron (I am running this on Ubuntu 10.0.4 LTS). The script works fine (i.e. transfers and copies file1 and file2 to/from the remote server, when I run it ...
5
votes
2answers
2k 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
1k 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 ...
4
votes
2answers
260 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.
0
votes
2answers
880 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
1answer
139 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
213 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
1answer
2k 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 ...
0
votes
0answers
435 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 ...
3
votes
1answer
401 views

Changing the auto-save frequency when editing files via Tramp / SSH

I am using Emacs (23.3.1) with Tramp to edit files on a remote SSH server. Right now these files are being auto-saved / auto-uploaded about once every minute. During each upload, anything I type does ...
1
vote
0answers
204 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) ...
6
votes
3answers
8k 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
3k 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 ...
7
votes
4answers
10k views

SCP from one external server to another

I am trying to use SCP on my local server to copy a file from one remote server to another remote server (both remote servers use a custom port (xxxx) I am trying: scp -r -P xxxx ...
5
votes
1answer
326 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 ...
0
votes
2answers
3k views

Overwrite if newer : SCP folder transfer

WinSCP has a great feature that only copies newer versions of files when you transfer between hosts. For whatever reason, I'm not able to connect to my remote host via WinSCP so I must use SSH. I ...
11
votes
1answer
7k views

Reverse SCP over SSH connection

I pretty often need some file from some server when I'm on my laptop. But if I don't know where that file is, I have to ssh into the server, look around, exit, and then scp server:file .. If I'm ...
2
votes
0answers
279 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 ...
2
votes
1answer
136 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
vote
1answer
431 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
1k 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
5answers
2k views

OSX SSH rsync - Keep remote directory up to date

I come primarily from a Windows background, migrating over to Mac. I've used WinSCP and loved a featured called "Keep Remote Directory Up To Date". Here's the question: is there an equivalent SCP ...
2
votes
1answer
857 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
16k 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. ...
1
vote
1answer
361 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 ...
2
votes
3answers
615 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 ...
0
votes
1answer
344 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
468 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
55 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
2answers
111 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, ...
0
votes
0answers
395 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 ...
3
votes
2answers
7k views

How to use scp in a bash script without specifying password?

I am a bash newbie, and am writing a bash script that will allow transfer of files between two computers. BTW, is there a more secure alternative to scp? Currently, I am doing this manually, by using ...
2
votes
1answer
2k 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 ...
2
votes
1answer
4k 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
1k 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 ...
0
votes
1answer
214 views

single persistent scp connection program options

I'm using PSCP (part of the putty package) to make several connections to a server but my boss would like to reduce the number of connections to 1. Is there a Windows program like PSCP which only ...