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

learn more… | top users | synonyms

0
votes
0answers
4 views

dropbear dbclient + scp, equivalent to openssh “-oStrictHostKeyChecking”

Using dropbear's dbclient and scp implementation, is there a way to get the same behavior produced by openssh when using the scp option "-oStrictHostKeyChecking=no". In other words, can I make ...
1
vote
0answers
13 views

Can I copy files via scp to specific folder in Windows?

I know I can copy file in "local" folder through command scp ubnt@192.168.1.20:/tmp/system.cfg /home/hp/backup/192.168.1.20/ but I'd like to copy this file to folder e.g.: C:\backup\192.168.20\ ...
0
votes
1answer
14 views

scp files between hosts using ssh local port forwarding

I have a problem about transferring files between hosts. Lab environment is like: My host <-> Host A <-> Host B I only have access to Host A and I want to transfer files to Host B. Host A has ...
0
votes
2answers
51 views

Can't scp file from local to remote host - Permission denied

I have trying to copy some files from local machine to remote host. root@local:~$ scp /var/www/html/file.php root@remote_host:/var/www/html/test/ The result is scp: /var/www/html/test: ...
0
votes
0answers
43 views

Linux server as a firewall between two other computers [closed]

I have 3 VMs: A -> B -> C I want to setup B as a firewall. Traffic is routed from A to C through B, and I put a file on C. How do I show that B works as a firewall? Can I first show that you are ...
1
vote
1answer
15 views

scp from ubuntu virtual machine under Windows 7: connect refused

This question is similar to Virtual Box ssh not working on Virtual Box Ubuntu machine. I actually got ssh to work, but now I want to transfer a file from my local machine to the remote machine using ...
0
votes
0answers
27 views

SCP Transfer in Mac the result is LS_COLORS='';

I'm having trouble copying files via scp it says LS_COLORS. Here is the result: Jehcys-MacBook:~ jehcyadorna$ scp jason@lvlivefeed1.com:/var/www/html/FamilyHelpNetworkUSA.com/images ~/Desktop/ ...
0
votes
0answers
30 views

Logging in to ssh doesn't ask for password, but scp does

I am logging in to my (Rackspace) server using ssh via putty where it doesn't prompt for a password. But using the same IP if I transfer files via scp, I am prompted for a password. How could I ...
2
votes
3answers
48 views

How to make a local tar file of a remote directory

This link describes how to copy tarred files to minimise the amount of date sent over the network. I am trying to do something slightly different. I have a number of remote files on different ...
0
votes
1answer
15 views

input/output error while copying PNG files from linux server to desktop using scp in cygwin

I am trying to copy some png files from linux server onto my local desktop running windows 7. I am trying to copy the files with cygwin using the scp command. I do not get any syntax errors but all my ...
0
votes
0answers
21 views

Running SCP through PHP does not yield same result as CMD

I have a Microsoft Windows Server 2012 R2 Foundation running an MSSQL server and PHP. My goal is to replicate tables from the MSSQLdatabase to a Debian Wheezy MySQL database. I have successfully ...
1
vote
1answer
30 views

“WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!” constantly occurring, even *after* deleting known_hosts

As per title, lately I started getting the error "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!" after I set up a new server in AWS. I'm on OSX Yosemite (10.10.3) I'm aware of nearly all the ...
2
votes
1answer
98 views

chroot: failed to run command ‘/bin/bash’:

I am trying to modify a kernel image before using it for qemu. I am trying to add a compiled binary to the image. I am using 64 bit Linux 14.02. What I am doing is, linaro-media-create --image_file ...
0
votes
1answer
17 views

Send file from windows local host to remote server via ssh

How can I send any file from a windows local host to a remote server via ssh? If possible, using only shell command line.
0
votes
0answers
37 views

How can I do ssh or scp without restarting the sshd service

I had a problem related to ssh about a week back -- Ssh/Ping Problems in Mac Yosemite through wifi but not ethernet. I was able to solve the problem. However, now I am facing another problem, where I ...
0
votes
1answer
26 views

scp checks existence in the wrong order

I've just come across a what I think is an odd behavior in scp. Consider the following: root@box:~$ scp foo.txt root@example.com: root@example.com's password: foo.txt: No such file or directory I ...
2
votes
0answers
42 views

SCP - The authenticity of host can't be established (But cant enter anything at prompt)

In windows 7 command prompt I enter: scp -W Scp\password.txt -P 22 xxxx@xxxx.xxxx.com:/home/xxxx/xxxx/xxxxxxx.csv After this I get the message: Do you want to trust this new host key and ...
1
vote
0answers
71 views

Cygwin: scp/ssh is slow

I'm using rdiff-backup for backuping my data. Since some machines are using Windows I installed sshd and rdiff-backup with cygwin there. The backup works but is pretty slow. I then did some testing ...
0
votes
0answers
11 views

How to specify ssh key for use with Gigolo for temporary session?

I can't determine any way to specify an identity key file in gigolo. I have had success using ssh config to associate a keyfile with a name and connect to that name with gigolo, however this is too ...
2
votes
1answer
21 views

Copy remote logfile over 2 hop SSH sessions, without the need for keying passwords

I wish to get logfile from a remotePC via a gatewayServer to my local PC without keying passwords. The gateway server used acctA@gatewayServer. The remote PC used acctB@remotePC. I have setup the SSH ...
0
votes
1answer
29 views

CentOs 6, rsync/scp of big file stop at 40% (2.4G)

I'm trying to download from the remote server to local laptop a big file (~5G), but the download stops at 40% of the size (2.4G). I'm using this rsync command: rsync --bwlimit=1200 -rh --progress ...
0
votes
1answer
71 views

How to send a file to another computer with bash script?

I know that you could use sftp to send a file, from the command line - but I don't know how to do this in a .sh file. Is there a way to do this is one line, or many lines, as long as it's possible in ...
1
vote
0answers
29 views

Check for a failed copy with scp

Is it possible in my code to verify if the file is well copied or not ? ssh -t root@$machine -x "sshpass -p 'ubuntu' scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null /home/MyFile.txt ...
0
votes
0answers
25 views

Multi hop SSH with certificate on bastion server

I have this situtation: my local machine a login server (with token implementation) a set of machines accessible only with another authentication from login server (token implementation too) this ...
2
votes
3answers
147 views

How can I have very large files/directories copied from one host to another “offline”?

I intend getting a vps server real soon for some of the resource-intensive sites I manage. I live in a country where 1Mb/s internet speed is a luxury and constant uninterrupted electricity, a myth. ...
1
vote
3answers
52 views

Using scp to get all files in multiple directories

I have a directory structure which looks like A1/B1/C1/files111*, A1/B1/C2/files112*, A1/B2/C1/files121*, A1/B2/C2/files122*, etc. so that all files in all directories are unique. Is there a way to ...
0
votes
0answers
32 views

Reverse scp to Ubuntu in Vmware ,Error reading:connection refused

I've successfully cross-compiled and installed dropbear on my embedded board. I have Ubuntu 10.04 installed in VMware Workstation. Openssh-Client/Server ( dpkg --list|grep openssh ) are all installed ...
1
vote
2answers
75 views

Authentication with ssh and scp works but not WinSCP

I have a Ubuntu server with 3 user accounts (root, user1, user2). user1 has access via WinSCP, scp and ssh. No problems here. Then I've created another user2 but with this user I can't access the ...
0
votes
1answer
41 views

scp with system user?

I have a user that was created this way: sudo adduser --system --home=/opt/someone --group someone This user does not have login, but when I login to server with my own user, I can change to that ...
0
votes
0answers
50 views

Send tex file to windows machine using scp

I am trying to send a small tex file to a windows machine from a linux server. I have ssh'd into the remote linux server. Would like to get the file onto the desktop on the windows machine. I have ...
0
votes
1answer
40 views

scp sometimes adds a '-f' flag to my command

When using SCP to copy from a remote host to local (eg: scp -v foo-host:/source/path dest ) I look at the verbose output and notice this is the command sent over SSH: debug1: Sending command: scp -v ...
0
votes
0answers
35 views

Forcing server to server copy to use LAN and not WIFI and “Smart” SSH GUI utility?

I have a simple LAN setup consisting of 4 macs with the included ssh servers turned on (all on Mavericks/Yosemite) I regularly sort and move files between the ssh servers. I'm looking for a tool that ...
0
votes
0answers
17 views

How to know which user removes other users files in same group in my CentOS server?

I have found out that there is a anonymous user in my CentOS server that removes some files that they have write and execution permissions for that group, So I am searching for who is performing this ...
0
votes
2answers
106 views

Copy files from Solaris to redhat via SCP command run on RedHat console

I have to copy several GB of little files (from few bytes to < 1MB). These files resides on a file system of a Solaris system. No rsync and rdiff software is available on Solaris and cannot be ...
1
vote
2answers
46 views

Exclude lines that have duplicate words between delimiters

I have a folder structure that has been (badly) maintained by a number of automated jobs. One of the side effects of these jobs appear to be that it creates duplicate folder names (and subsequently ...
0
votes
0answers
27 views

Why my HostOnly adapter stopped working on my virtualbox guest and I cannot connect to it?

Basically my setup is: Windows 7 laptop with VirtualBox with Centos6 installed. I have 2 adapters enabled on guest: 1 NAT for internet access and 1 HostOnly to connect to this machine (for e.g. scp ...
0
votes
0answers
28 views

scp/rsync through a SSH gateway using authorized_keys

My Network layout is similar to the diagram in this post (SCP through SSH gateway connection). With respect to the answer by Ash Vince in that post, I am would like to know if it is possible to ...
0
votes
1answer
74 views

bash: adding a common string to files found with wildcards

I'm wondering if there is a way to rename a wide range of files that are found using wildcard patterns. For example, say I want to scp all files that match a certain pattern, but append a string to ...
0
votes
0answers
132 views

Unstable Network Connection in local network (Debian Wheezy)

I encounter serious network problems for a Cubietruck mini-PC in my local network. I am using a Debian Wheezy Image on the device, which works fine except that the network connection within my local ...
1
vote
1answer
62 views

SSH working but SCP permission denied using the same password

I can successfully SSH into my remote sever (amazon web services if that matters, I'm on a mac) using ssh -i mykey.pem ubuntu@??.??.??.??? But when I try to use scp scp -i test.php mykey.pem ...
0
votes
1answer
33 views

CentOS bashrc function to email on login

I've a system setup where an email is sent on a user login (line from .bashrc): printf "user details, ip etc" | mail -s "[LOGIN NOTICE] `hostname` - `whoami`" <admin>@<domain>.co.uk ...
0
votes
3answers
93 views

Transfer file from server to home computer via another server

I have a text file on the server (Linux) at work and now I am at home. I am a PuTTY user. To connect to the server from home I have to connect to another server and then by SSH to the main server ...
2
votes
1answer
258 views

Copy file from remote host to another with scp/ssh tunnel

I want to copy a file from a remote host (remote1) to another remote host (remote2) via my local machine. I can only establish ssh connections from this local machine to either of the two remotes. ...
1
vote
1answer
195 views

Using scp to transfer a .txt file list of files

I have 1.6 million files on server A, and only about 20k of them need to get to server B. The destination, server B, is on GoDaddy shared hosting, so I'm just about limited to scp for transferring ...
0
votes
1answer
1k views

cp: cannot stat : No such file or directory

I am getting an error when I try to copy a file from my local computer to a remote server. I get the same error whether I use cp or scp. Here is my input at the resulting error: ...
0
votes
0answers
58 views

How to perform remote JBOSS debugging to AWS (Amazon Web Services)

Our service provider setup an environment to host our website in AWS (Amazon Web Services). The website is running on JBOSS. We enabled remote debugging in JBOSS by putting: JAVA_OPTS="$JAVA_OPTS ...
0
votes
2answers
336 views

Can't ping my own computer from my server

I've setup an AWS server, and I can ssh into it from my home computer and everything acts normally. On the server, I can ping to any external website (i.e. google, cnn, reddit), but I can't ping my ...
1
vote
0answers
26 views

Copy text file from a isolated server

I have a linux remote machine which is isolated from the rest of the world. To access to it I have first to connect via ssh to a gateway. When connecting to the gateway I have no prompt, but I must ...
2
votes
2answers
632 views

Copy multiple sources to multiple destinations simultaneously

Suppose I need to copy files ~/path/to/file to user@remote:/path/to/file ~/path/to/another/file to user@remote:/path/to/another/file ~/path/alternative to user@remote:/path/alternative Is there is ...
0
votes
2answers
331 views

How can I copy-paste a directory from my computer to another computer using ssh?

Watching this video I have learned how to copy-paste from an external computer to my computer using ssh by doing scp name@IPadress :/what/I/want/to/copyPaste Now, my goal is to do the opposite, ...