Tagged Questions

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.

learn more… | top users | synonyms

0
votes
0answers
118 views

Copy files from EC2 instance to remote dedicated server

I'm having trouble copying several very large sql dumps via SSH I used this command: /usr/bin/scp -P 2382 /ec2/path/file.sql root@$123.45.67.890:/remote/file/path/ And also /usr/bin/scp -P 2382 -i ...
0
votes
1answer
643 views

scp returns Exit status 1

In a LAN I have two PC, both running Ubuntu 13.04. There is a directory which is in a shared folder (samba, guest access) in the first PC. I have tried to copy this directory to the second PC through ...
-1
votes
2answers
943 views

SCP Asking for Password with RSA Key

I've followed a few tutorials on setting up RSA Public Key Authentication, but I cannot seem to get it to work. I can SSH into the remote machine without a password, but when I try and scp files, I ...
4
votes
1answer
3k views

SCP transfer only modified files

I'm using below command to transfer files cross server scp -rc blowfish /source/directory/* username@domain.net:/destination/directory Is there a way to transfer only files modified files just like ...
1
vote
2answers
112 views

scp says: Bad configuration option: CheckIP

I try to do a scp on my centos (without having ever configured anything on the ssh_config) receiving: Bad configuration option: CheckIP Where in ssh_config CheckIP no is configured. Didn't find ...
1
vote
6answers
559 views

Secure file transfer in linux without SSH?

First thing i want to apologize if this question is silly or something...i just tried to research but it seems to be a bit hard to find exactly what i want in Google ! [or i'm not smart enough to find ...
-2
votes
1answer
451 views

~/.ssh/known_hosts file - how to set it up? [duplicate]

I'm trying to SCP a file from my server to another server. The command I'm using is: scp -i private.ppk -P 22 foo.txt someuser@domain.com:/home/someuser/foo.txt When I run this via the command ...
1
vote
1answer
88 views

Copying files over chained SSH connection

I am using a remote server and want to copy files from the server. When using the server, I need to log in with 2 steps. ssh username@A after loging into server A, I need to log in again. ssh ...
1
vote
1answer
162 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: ...
2
votes
2answers
556 views

Linux to windows ssh/scp/sftp differential backup solutions?

Here is the setup: Large amounts of large files (many over 4gb, multiple TBs in total) in a simple tree structure that need to be backed up without compression from a handful of linux boxes to a ...
0
votes
1answer
3k 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
2answers
243 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 ...
3
votes
1answer
353 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
1answer
224 views

“Unable to get term attr: Invalid argument” while trying to SCP

I have to set up two LDAP servers for replication. My problem is that when i want to copy the master-slapd's database files with scp command i get the next message after typing in the account's ...
3
votes
1answer
270 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
1answer
95 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 ...
0
votes
1answer
152 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
5answers
359 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 ...
0
votes
1answer
2k views

can not connect through SCP, but SSH connections works

i am trying to connect to my server to transfer file using scp: $ scp -v -r -P <port> <user>@<host>:~/dir/ dir/ this is the output: OpenSSH_5.2p1, OpenSSL 0.9.8r 8 Feb 2011 ...
-3
votes
2answers
198 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
2answers
295 views

rsync unique situation

Reference: How do I do Multihop SCP transfers? http://stackoverflow.com/questions/732039/rsyncing-files-between-two-remote-servers-get-errors-stating-rsync-command-not ...
1
vote
2answers
356 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 ...
1
vote
2answers
3k views

Is there anything I can do to improve the performance of uploading ISOs to ESXi 5?

I'm trying to upload a few Debian ISOs to my ESXi 5 datastore but it's really slow. Far slower than downloading them from the web was in the first place. I've tried both via the GUI uploader and ...
-1
votes
2answers
92 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?
1
vote
2answers
54 views

Get Zipped Logs from a Remote Server

I am tasked with trying to find a way to download zipped logs from a remote server. There are quite a bit of these logs and they are constantly created. I do have limited ssh access to the remote ...
2
votes
2answers
3k views

scp to remote servers stalls, unable to isolate cause

When I copy a large file (100+mb) to a remote server using scp it slows down from 2.7 mb/s to 100 kb/s and downward and then stalls. The problem is that I can't seem to isolate the problem. I've ...
0
votes
1answer
266 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 : ...
0
votes
1answer
825 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
1answer
43 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
1answer
107 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 ...
0
votes
4answers
217 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?
1
vote
1answer
298 views

Vim SCP parameter with private public key pair

Currently, I am trying to edit a file on a remote server using Vim's built-in netrw plugin. I can SSH fine into my Amazon EC2 server using a command like this: ssh -i <keyfile> ...
3
votes
1answer
957 views

configuration transfer over scp on commit not working on Juniper EX-2200 switch

I am making a series of configuration changes on Junos EX- 2200 switch.I have this router connected to another PC via an ethernet cable.The IP address of the switch is 192.168.1.1.I am able to ping ...
0
votes
2answers
1k views

How to make SCP on Linux output “success” to stdout instead of stderr?

We have a cron job that sends stuff to another company using SCP. The command look like this: 10 0 * * * ssh USER@LOCAL-SERVER 'scp -q ~/some/dir/* REMOTE_SERVER:/other/dir/' >> ~/log/some.log ...
-1
votes
4answers
770 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 ...
7
votes
4answers
4k views

OpenSSH anything like 'internal-sftp' but for SCP?

I'm running Debian stable and I'm looking to establish the following environment for users in my 'sftponly' group: jailed can transfer with SFTP can transfer with SCP cannot login interactively with ...
0
votes
1answer
973 views

Solaris 10 very slow ssh file transfers

Trying to copy a few TBs betweek Solaris 10 u9 systems A single scp only seems to be able to transfer around 120MB/min, over a 1GB network. If I run multiple scp copies, each one will do 120MB/min, ...
1
vote
1answer
337 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 ...
1
vote
3answers
2k views

Linux SCP File transfer No space left on device?

I am trying to transfer one zip file from a linux based machine to a Windows based using SCP. I can go through the transfer ok but when it completes it says "No space left on device". The ...
0
votes
3answers
471 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: ...
5
votes
1answer
1k 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
1answer
72 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 ...
6
votes
1answer
2k 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 ...
0
votes
1answer
968 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
2answers
367 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 ...
2
votes
2answers
255 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 ...
1
vote
5answers
1k 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 ...
0
votes
1answer
196 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
5answers
479 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 ...
3
votes
3answers
4k views

Use scp to copy a file to different servers

I have to copy a file to different servers almost every day. What I usually do is: scp filename user@destinationhost:/destination/folder I run this same command changing the destination host over ...