Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
34 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 ...
1
vote
1answer
32 views

How to use ssh to copy a file multiple hops with agent forwarding?

I have a group of servers all properly configured with SSH agent forwarding. It is a typical bastion server style configuration where the only machine you can connect to from the outside is server A. ...
0
votes
0answers
32 views

scp in for loop for installing printers — connection refused

I could've sworn I was able to setup printers by: setup first host with lpadmin setup additional hosts with for loop: wherein stop cups copy printers.conf over start cups for host in ...
0
votes
0answers
25 views

Sudo with scp - transfering local file to remote server using ssh [migrated]

So I'm running the following command scp \desktop\myfolder\deployments\myfile.txt user@host:/path/to/whereyouwant/thefile In an attempt to transfer a file from my local windows 7 machine to a ...
2
votes
4answers
70 views

SSH not seeming to run in bash script called via web server

I have a simple shell script that: Makes a directory on the remote machine. Copies a .epub file to the remote machine's new directory. Runs kindlegen to convert the .epub to a .mobi. The remote ...
1
vote
3answers
51 views

Estimating the time needed to copy a big file

I have to copy a relatively big file (6GB) to another server. To enforce consistency, I have to 'lock' this file and not use it during the transfer. I obviously want to minimize this downtime, but ...
0
votes
3answers
76 views

change scp default directory in `~/.ssh/config`

The scp (openssh) command accepts relative paths as host:path/ which are relative to the home directory on the host. I would like to change location of the default directory. For example, I would ...
0
votes
1answer
51 views

SCP - Traditional Web Server to EC2 Instance

I am setting up a backup server instance on EC2 with a public dns for its IP so that other servers on hostgator with dedicated IPs can send files to it. I am confused as to how to use SCP with EC2 ...
0
votes
3answers
108 views

Trying to SCP from Local Mac to Amazon AWS Linux Machine

I am trying to copy a file from my local Mac to my Linux instance running on the Amazon EC2 / AWS Cloud. I am able to connect to the server via Terminal, but am unable to get my file up to the ...
1
vote
2answers
39 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 ...
2
votes
3answers
227 views

How to copy large (> 1 million) number of small files between two servers

I need to migrate about 1TB of data comprised of smaller files (most under 100KB) to another server. I've not even completely enumerated the files but estimates are between 1-2 million. The ...
0
votes
1answer
50 views

OpenSSH scp restrictions a-la gitolite

Does anyone know of some software that would allow to restrict/tune the scp experience on a single unix user, based on SSH keys? Similar to what gitolite does, or more flexible what rssh can do, but ...
2
votes
3answers
170 views

How do I SCP keypairs from one Amazon EC2 instance to another instance?

I am trying to SCP cert. between my two instance and having some trouble. Here is what I am entering. [ec2-user@ip-xxx-xx-xx-xx ~] scp -i .ssh/key.pem /root/.ssh/id_rsa.pub ...
0
votes
3answers
354 views

How do I SCP file between two Amazon EC2 server?

I am on Amazon AWS and I have two EC2 instance on my account. Trying to send rsa key via SSH to another EC2 instance using internal private IP. But its not working. scp -i .ssh/id_rsa.pub ...
0
votes
4answers
63 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 backupUser@192.168.x.x:backup However when I run duplicity, I get ...
0
votes
3answers
93 views

Copying files SSH vs sFTP [closed]

I'm a bit of a unix noob, but this question seems super basic, yet I can't find an answer anywhere. Basically, to my knowledge, sFTP is just FTP over ssh. So, why can't I drag and drop files from ...
2
votes
1answer
56 views

getting a list of files from secure server

i am trying to get a list of files from secure server to compare them (using diff) to the ones i modified on local version (unfortunately the company i work in is not using subversion nor git yet) i ...
2
votes
1answer
84 views

scp without known_hosts check

Is there any chance to skip the known_hosts check without clearing known_hosts or disable in ssh.conf? I neither have access to known_hosts nor ssh.conf yet. Don't find any suitable in man.
1
vote
2answers
183 views

WinSCP - SCP is working and SFTP is not working

I am trying to connect to our remote server using winSCP. It was working before. But from today I am not able to connect to the server using SFTP. If I changed the protocol to SCP, then I am able to ...
2
votes
2answers
100 views

scp returns “unexpected <newline>” error

I am trying to scp a file from a server to my local machine, but it is giving me this error: protocol error: unexpected <newline> This is my syntax: scp user@server:/path/to/file . It did ...
3
votes
4answers
94 views

Running multiple scp threads simultaneously

Running multiple scp threads simultaneously: Background: I'm often finding myself mirroring a set of server files alot, and included in these server files are thousands of little 1kb-3kb files. All ...
0
votes
1answer
43 views

SSH/SCP filebrowser supporting server hopping

To access our file server here, I need to connect first to a server which is public available and then open a second ssh connection to that server. If I need to copy files, I first need to copy them ...
1
vote
3answers
343 views

How to avoid stalled scp transfer when tunneling through a gateway over ssh?

I'm try to transfer a large (1GB+) file from one machine to another, but I have to tunnel through a gateway in between. I'm able to transfer small files just fine. However, with the big file, the ...
2
votes
3answers
567 views

How to pass password to scp command used in bash script?

I have a bash script that makes dump of DB then copies file from one server to another but it always asks for password before connection. scp file.tar.gz root@xxx.xxx.xxx.194:/backup Is there a way ...
0
votes
2answers
126 views

How can I ensure non-corrupt file transfer in linux?

I have script scheduled with cron that transfers a file around to other machines using scp filename user@host:~ and today have noticed that sometimes the md5 of the files don't match. Upon closer ...
0
votes
2answers
91 views

User created MOTD prevents SCP from functioning

I've created custom MOTDs to be displayed at login via SSH by doing the following: create a text file in /etc/usermotd/<username> with the message inside Edit the user's .bashrc file and put ...
0
votes
2answers
39 views

Copying file from remote server to my ubuntu desktop

I have confused how to do that. someone tell me to use scp but it still unclear for me. I just can control the server using ssh. I did like: qa-desktop2@qa-desktop2:~$ scp ...
3
votes
6answers
137 views

Transfer a file from remote server A to remote server B from server C

I have an interesting problem I'm trying to solve. I have a JumpBox server that I have in order to securely ssh into client's servers. This is the only server my clients ever open up port 22 to. ...
1
vote
2answers
158 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
vote
2answers
167 views

Why does SCP write 0 bytes in this case?

I'm trying to copy my ssh key from my local vm to another box, everything seems to work ok, but when I check the remote box the file isnt there... Transferred: stdin 0, stdout 0, stderr 0 bytes in ...
5
votes
2answers
171 views

Back up Linux environment

I'm currently in the process of installing a bunch of stuff I need and getting setup my Linode that I recently purchased. Being a Linux newbie, I'm doing pretty well - but one small mistake can screw ...
0
votes
1answer
85 views

How To set up SCP from localhost to remote Ubuntu server - Part 2

I am trying to configure an ubuntu vps. I have set up ssh secure login using rsa public and private keys from a local machine. As well as disabling root login I have also set up iptables and ...
2
votes
1answer
50 views

How To set up SCP from localhost to remote Ubuntu server

I am trying to configure an ubuntu vps. I have set up ssh secure login using rsa public and private keys from a local machine. As well as disabling root login I have also set up iptables and ...
2
votes
2answers
93 views

Transfer large files over the internet from a Linux VPS to Windows machine

I regularly need to transfer files that are a few gigabytes in size from a Linux VPS to my home Windows machine. I am trying to find a transfer method that fits my needs. FTP/SFTP works but is quite ...
2
votes
2answers
71 views

Compare & Copy missing files from identical directory on Remote Server

I have a development server on which I want to keep certain data directories in sync with the live server. Any files in these directories which exist on the live server, but not on the dev server, I ...
0
votes
0answers
117 views

scp issue between Virtual Machine host over VPN

I have a issue copying the file using scp between two hosts over VPN. One host is Ubuntu Linux Server(v9.10) which is a physical machine, and another is also Ubuntu Linux Server but which is virtual ...
2
votes
2answers
228 views

PSCP: Upload an entire folder, Windows to Linux

I am using PSCP to upload some files from windows to linux. I can do it fine just uploading one file at a time. But I have some very large directories and I want to upload an entire dir at once. I ...
1
vote
1answer
261 views

Very bad nfs / cifs performance

I mount a NAS under Ubuntu Linux 10.04. Unfortunately I get a very bad read/write performance, although I played around with various options (I have to admit that I do not really know what to do ...
3
votes
2answers
76 views

scp and rsync do not work (ssh works)

In my Debian Squeeze server, scp and rsync do not seem to copy over anything. Works fine with another server though (so not a client problem). When using scp, it just creates an empty file and waits. ...
0
votes
2answers
496 views

Why getting a permission denied (public key) error for SCP when SSH works

I'm trying to copy a file from my local host to my Amazon EC2 instance using SCP and receiving the error: Warning: Identity file blocks_key.pem not accessible: No such file or directory. ...
2
votes
1answer
185 views

Problem copying/downloading Virtual Machines from ESXi 3.5 server

I have a ESXi 3.5 server that has 3 virtual machines on there that I cannot copy/download the virtual machine OR vmdk files from. I have tried the following options with their results: NOTE: all ...
1
vote
1answer
48 views

Copy from remote computer to local computer SSH (Ubuntu Server 10.04)

scp filename user@ip_address:/location will copy a file from my local computer to a remote computer... However I need to copy a file from the remote computer back to the local computer. Is there any ...
1
vote
2answers
275 views

SCP - Is a checksum required?

I'm backing up and transferring files automatically each night via scp. I realize I get packet-level checksums via the protocol itself, but I'm wondering what the best practice is to ensure that a ...
1
vote
2answers
72 views

Copy a file from remote to local

I am trying to copy a file from 10.10.10.99:/home/shantanu/ to the localhost. The only problem is that I need to tunnel the connection through 10.10.10.98 Something like this does not work.... ssh ...
0
votes
1answer
46 views

transferring files from server to local machine

Hello I am running ec2 ubuntu instance, now I need to download few files to my local ubuntu machine from my server. How to do it. I went through few instructions available on internet, which are not ...
0
votes
2answers
79 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 ...
3
votes
2answers
294 views

Ubuntu SCP copy stalls

I have problem copying files to cloud servers with SCP from my office. When I do scp of 17MB war file it says STALLED and then reconnect and again says stalled like the one below: #scp ...
3
votes
4answers
381 views

Copy multiple folders to a single destination with robocopy

I'm looking for a solution to use robocopy to copy several folders from a directory onto a distant network share. I want to choose several folders out of a directory that contains hundreds of folders ...
0
votes
2answers
193 views

WinSCP alternative for OS X (that supports sudo and without virtualizing WinSCP)

I recently switched from administering my systems using Windows to OS X. I've found really nice alternatives to damn near everything I used previously, however I have not found a nice GUI editor ...
1
vote
2answers
132 views

Using a system user to transfer files via scp/kerberos

I need a cron job to transfer a file across servers using scp and kerberos authentication. The system user for the job is in /etc/passwd on both machines and a valid keytab has been created (with ...

1 2 3 4