Questions tagged [scp]

Secure Copy or SCP is a means of securely transferring computer files between a local host and a remote host or between two remote hosts. It is based on the Secure Shell (SSH) protocol.

Filter by
Sorted by
Tagged with
3 votes
1 answer
2k views

Retain agent-forwarding in sudo

I want to be able to connect to a server, start a sudo shell, then use agent forwarding to connect to another server (in order to use SCP to copy files to a protected area). But: ubuntu@tunnelator:/...
0 votes
1 answer
248 views

juniper VPN disconnect when I use SCP

I am using Juniper in my company. I have a 64 bit Ubuntu 12.04 laptop. I can ssh to remote servers, and do everything well. My problem is : whenever I scp something to the remote server, Juniper ...
1 vote
1 answer
15k views

Why my scp is working one side only? "Lost connection" SCP transfer

I'm trying to transfer a file via ssh but it works only from PC1 to PC2 but it doesn't work backwards. I've checked my ssh_config files and both are the same. Which is basic: Host * SendEnv LANG ...
0 votes
2 answers
395 views

FTP giving less uploading speed compare to SCP

If I upload file using SCP then I get uploading speed up to 1.5 MB/s scp filename root@SERVER_IP:/path/to/store/ and If I use FTP to upload same file on same server then I get uploading speed up to ...
3 votes
1 answer
2k views

Is it possible to force SFTP rather than allow SCP fallback ?

I have a Red Hat 5.4 server with openssh OpenSSH_4.3p2 and have been trying to setup scp/sftp logs in my server, but I am running into some problems. I followed the directions in this other post. ...
0 votes
5 answers
974 views

duplicity can't find remote backup directory?

Using my private key to do so, this command allows me to connect to /home/backupUser/backup just fine: $ sudo sftp -oPort=7843 [email protected]:backup However when I run duplicity, I get the ...
4 votes
1 answer
1k views

The Right Way to setup SSH keys to automate scp

I want to setup SSH keys to automate scp jobs. My current assumption is that "automate" implies SSH keys without a password, but I am open to your suggestions. I did a lot of Googling before I asked ...
0 votes
1 answer
1k views

passwordless scp without keys

I am looking for some option that will allow me to accept files from any server using SCP command. I am aware of the process of creating password-less logins. But what I am looking for is an option on ...
1 vote
3 answers
1k views

Optimizing on sending files via site-to-site vpn connection

I've got a site-to-site vpn connection between two data centers (one in San Jose, the other in Toronto). I need to send a 32GB file from one dc to another - FAST AS POSSIBLE. I've found a shell ...
1 vote
1 answer
302 views

How can I refer to my machine (client) when remoted in to a server via ssh?

This comes up with surprising frequency: I am on a server or other machine via ssh. I want to scp or rsync some files back to my client machine. The problem is that I am behind a firewall and I don't ...
1 vote
5 answers
1k views

Setting up SSH Key securely for SCP/rsync to run without password

This is how I am currently doing it: # ssh-keygen -t dsa -b 1024 -f /root/localhost-rsnapshot-key Enter passphrase (empty for no passphrase): [press enter here] Enter same passphrase again: [press ...
7 votes
5 answers
7k views

Skip over intermediate server via SSH

I just got hired to work in a lab with a big 'ol linux cluster. I'm a mac/windows guy, so I'm still trying to figure out how to navigate around using a 'nix command line. So far I haven't run into any ...
-3 votes
2 answers
506 views

Create a public key to allow scp server to server

My scenario is this, I am trying to SCP from server1 to server2 and and I need to create a public_key on server1 to allow server2 access to it. How do I do this?
1 vote
2 answers
872 views

Cannot log in to bash

I was trying to install ncurses on a virtual Debian server on VMware and somehow was unsuccessful. After logging out of the console, I realized that I could not log in anymore. I cannot use tools such ...
0 votes
1 answer
1k views

scp takes more time to copy and stalls

I am using Ubuntu with a 2Mbps link. I would do scp to the Ubuntu cloud servers to copy a .war file which is 14MB. It used to take only 2 minutes to copy this .war file under /tmp of the cloud server. ...
-1 votes
2 answers
123 views

SCP and backing up data

I have a user on my Linux NAS box running barebones and I want to setup SCP but without Shell access and I ONLY want it to access one folder. Is this possible?
2 votes
2 answers
2k views

scp stalls and ssh sessions freeze up (but eventually start again)

I am running ubuntu on various computers on a home wireless network. Some are on 9.04x64, some 10.04x64 and one 9.04x32. Running scp with a large file starts out at 2.1 mbps and drops down to about ...
0 votes
1 answer
2k views

Scp only a specific folder

Some command line syntax I don't know how to set, am a noob sometimes, sorry is that's obvious Let's says I have the following path for all my assets : /var/www/site/system/images/{image_id}/{format}...
1 vote
1 answer
4k views

file transfer with ssh pipe; without scp

Scenario: I'm having about hundred odd text files which are compressed as .gz. They need to be transferred to a remote server. I do not want to use scp. Both, linux servers. my requirement/my idea: I ...
0 votes
1 answer
445 views

scp not downloading file in the proper location

So I'm SSH-ing into a server and trying to download a file to my local machine using scp: scp user@remotehost:/path/to/file/filename . But the file ends up downloading in the home directory on the ...
0 votes
4 answers
2k views

How can I send single file to multiple remote sites at the same time?

can scp be used to send single file to multiple remote servers at the same time? If so what's that? if not, what's the alternative?
13 votes
4 answers
2k views

Is BitTorrent good for copy files between servers in the workplace?

I have 1 source server that contains about 30GB of files that I want to copy to 7 other servers. I currently SCP the files over to the first four servers and when that transfer is complete SCP to the ...
1 vote
5 answers
2k views

How to synchronize users, passwords, hosts, etc without NIS

I am administering a very small solaris 2.6 network with 4 boxes total. Is it possible to use scp or similar to replace NIS for synchronizing users, groups, hosts, etc? This network is only a ...
0 votes
4 answers
3k views

Cloning entire partition of a server over a network

Using the linux command 'dd' you can clone a partition to a .img file. I have used this method for duplicating flash drives for use with many servers in the past. Then if one goes down, it is very ...
8 votes
2 answers
4k views

Does SCP lock the file it is transfering?

Have a situation where we have an application log sitting out on an AIX server. The log is being continually written to from the application, and we have users on Windows who want to view the file. ...
1 vote
1 answer
1k views

Recommend practice for checking if files where copied using SCP

I'm trying to create simple backup script that copies some files to timestamped directory on the remote machine - this part is working quite OK, because I didn't run into issues like e.g network ...
0 votes
3 answers
1k views

rsync or scp only if there's a difference

How do i figure out if there's a difference between an backupfile and the current used one. The Filename of the Backup is named like: filename_date.conf and the currend used one is name like: filename....
0 votes
1 answer
109 views

Does scp block server functions?

I have a node.js application server. It serves my api and dynamic web pages. The database is not on the server. I want to continuously scp files into the server. Would that cause slow downs or block ...
12 votes
1 answer
10k views

Reliable file transfer over slow or flaky network link

I need to transfer a number of files files over a low-quality broadband link to a server. The files are large, and take approximately 30 minutes to transfer per file. I use scp, but it sometimes ...
9 votes
1 answer
12k views

bind interface for upload : scp works, not rsync

I need to upload file on a specific interface. This cannot be set-up via iptables, because my script output on several interfaces. this is working fine : scp -oBindAddress=192.168.100.1 ... but ...
0 votes
1 answer
2k views

Elastix, how to MOVE files from one server to other server?

In my office, i have to schedule for moving a file from one computer to other computer (Both are using Elastix). My idea is using cron, scp, and rm to do this. So here are the script that i use: scp ...
0 votes
2 answers
518 views

copy files with folders [closed]

The following scp is working as expected. scp /home/admin/* root@ec2-50-112-212-73:/ But I need a command that will create the required folder structure on destination server if it does not already ...
1 vote
9 answers
8k views

SSH/SCP with no password not working?

Consider this scenario: an admin configured a public/private key pair to use when rsync'ing files between servers to avoid the password prompt. This setup works great. Then when attempting to use ...
1 vote
2 answers
1k views

Download files from server while logged in via ssh

I have root ssh logins disabled on my server, but I currently want to back up some files owned by root onto my my local box. I am trying to figure out a way to use SCP to retrieve files while logged ...
2 votes
5 answers
2k views

How to copy directory from one Linux server to another with a minimum in-between period?

I have a rather big directory on one server (over 4000 files), which I'd like to copy to another server (which contains a previous version of this directory). rsync is the first option, but it will ...
1 vote
1 answer
1k views

Access via sftp/scp an encrypted disk

I would like to do something really paranoid but I am not sure it could be done at least easily... Let's see if I can explain properly: I have a server running debian (could be changed to any other ...
1 vote
5 answers
662 views

Fast Internet Backup

We wish to install some servers in a remote datacentre to act as a backup storage location for our primary datacentre. Assuming that both sites will have GigE connectivity, what is the best method to ...
0 votes
2 answers
3k views

Download big files from ESXi?

I want to move one of my vm guest between two ESXi servers. I can't do this with converter or Veaam FastSCP because I'm in another network and using this tools is extremly slow. So I'm trying to copy ...
2 votes
1 answer
2k views

Limit scp (with sshd on centos) speed / rate

I'd like to let users download / upload files via scp to my centos 6.0 system, it's connected to lan via Gigabit ethernet, but I don't want transfers to flow at that speed. I want to limit the speed ...
-1 votes
1 answer
946 views

does scp affect performance

I am using scp to copy a file from remote server to local and it is working as expected. scp remote_server.com:/data/ar_uw2a_vol_0286036c_2012-04-24-05-35-00 . I have 2 questions: 1) Since I am ...
3 votes
3 answers
1k views

SCP overwrites files with dollar signs

I have this files: A.class A$1.class A$2.class And a bash script with something like: for i in *; do scp "${i}" foo@bar:/tmp/; done This works fine. All three files are copied. The problem is ...
0 votes
0 answers
112 views

How write .sh script to remote copy files between linux [duplicate]

Possible Duplicate: How to pass password to scp command used in bash script? when use scp to remote copy file between servers then type "YES" and "PASSWORD" I don't know how to auto type it. Can ...
0 votes
1 answer
2k views

scp (ssh) fails the first time, works the second time

We have a debian testing server. When I am trying to access the server with scp it doesn't work the first time - the client says, that the remote host closed the connection. When i try the same action ...
1 vote
2 answers
657 views

Script SCP without certificates or expect

I need to script SCP and I need to be able to do this by passing in the password in plain text. I am absolutely aware of the horrible design pattern that I am asking for. I cannot use certificates for ...
-1 votes
2 answers
550 views

Transfer files on SSH to Desktop [closed]

Based on the tutorials I've browsed through: This is the Linux scp command syntax to retrieve file or directory from a remote computer: scp -r [login name@ip address] : [/path/filename] . So what ...
1 vote
3 answers
156 views

How To Setup A Centralized Repo To Distribute Files To Servers

Assume I have dozens, even hundreds of servers. What is the best method of pushing a central copy of files to a given directory to all servers? Example, we update a bash script, and put it on a ...
4 votes
2 answers
4k views

Upload a file using scp only if the file was updated/modified?

pscp is a very handful tool if you want to upload files to another server using SSH. The only problem is that it is not able to detect if the destination file is already updated (based on datetime). ...
4 votes
3 answers
4k views

Debian Permit Local Command Issue

I have a debian box that I cannot scp files from. Installing ssh again does not fix this issue hosting:/home/gcushing# scp test.text [email protected]:/home/gcushing command-line: line 0: Bad ...
0 votes
2 answers
3k views

How to use directory autocompletion with scp

I use the authorized-key to log into my remote ubuntu server. I need to use scp frequently to cp files from my local machine to my remote machine. I want to enable the autocompletion as I did with my ...
3 votes
2 answers
5k views

SCP does not completely transfer file

I am trying to transfer a large (1.5 GB) text file using SCP. While the transfer finishes normally, only 1.4 GB are transferred. Is there any reason for this incomplete transfer. I am on Ubuntu 10.04

1
5 6
7
8 9