Questions tagged [scp]

SCP stands for Secure Copy Protocol and is related to questions regarding secure file transfer.

50 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
394 views

How to close sftp connections made by dolphin?

after using dolphin to connect to a ssh site, for example: sftp://myserver.com and using my user and pass... how can I close that connection so I can log in with another user? It does always auto ...
3
votes
0answers
3k views

scp from a remote server - Permission Denied

I am trying to copy a tar file from a remote server to the local machine. The command is sshpass -p 'somepass' scp someuser@somedomain:/some/dir/some_file.tar.gz /local/dir Syntactically, the ...
3
votes
1answer
2k views

File Transfer mode in sftp

I am a newbie to ftp and sftp as well as Linux. Can you please advise what is the default mode of file transfer in sftp? I know in ftp, we have transfer modes (binary and ascii). It would also be ...
2
votes
0answers
698 views

problem with scp: cannot open shared object file

I am using Ubuntu 14.04. When I use scp command, I get this error: scp: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory lost connection By ...
2
votes
0answers
3k views

cp: cannot stat … : No such file or directory

EDIT when I run $ stat /Users/argenticdev/www/projects/nickeleres/nickeleres.tar.gz I receive: 16777220 1624366 -rw-r--r-- 1 argenticdev staff 0 4692346 "Mar 5 10:40:49 2015" "Mar 5 10:40:11 ...
2
votes
0answers
139 views

who is scping your ssh server

Just you can run w to find who is sshing into your server, how can you find out who is scping into an Ubuntu laptop?
1
vote
1answer
45 views

SCP to multiple servers using key pair authentication

I'm using a key pair for authentication for SSH on all my servers. We disable password login over SSH for security reasons on all our Linux servers. On each server I have a folder at the root level ...
1
vote
1answer
73 views

id_dsa authentication works in one direction but not the other

I have two laptops running 18.04. Both have identical .ssh folders. I can copy from the new one to the old one using scp with id_dsa authentication, but in the other direction this mode of ...
1
vote
0answers
95 views

Not able to connect to linux server using winscp because of login script

I am not able to connect to my remote hosting server using Winscp. I have set the file protocol as SFTP and shell as bin/bash. I am getting the following error after entering the username and password:...
1
vote
0answers
135 views

scp not running .bashrc or .bash_profile before copying file

My .bash_profile has the line export path_shortcut=/some/file/path (not wrapped in any conditionals), but calling scp file.txt target_computer:$path_shortcut still copies file.txt to the target ...
1
vote
0answers
907 views

ssh works, scp hangs forever

I would like to copy files from my laptop to another machine - a headless TX2 -- over my home wifi network. Both my laptop and the TX2 are running Ubuntu 16.04 and both have the latest version of ...
1
vote
0answers
407 views

fix scp autocomplete in 18.04

in 16.04 there is no /usr/share/bash-completion/completions/scp and tab will work with scp and local paths in 18.04 there is a /usr/share/bash-completion/completions/scp and tab will fail with scp ...
1
vote
0answers
2k views

How to use sshpass to sftp upload file?

I have following : $ cat upload.sh sshpass -f ~/path_to_password/pass.txt sftp user@remote.location.net:/pools/path/ << EOF put backup.tar EOF When i execute the upload.sh it shows nothing (...
1
vote
0answers
514 views

scp not working when my ssh is working perfectly

I am having issues in scp a file to another user: scp filename USERNAME@192.168.0.1:~/path/to/directory I only get the below line, but scp doesn't happen: SSH_AUTH_SOCK=/tmp/ssh-KjEHW3vNQqjE/agent....
1
vote
0answers
606 views

How to transfer files from one ssh to another ssh by scp?

I want to copy files from one ssh to another ssh using scp command. scp user@host:~/file/to/be/copied user@host:/location/to/save/file/ But Following error occurred: Permission denied (publickey). ...
1
vote
1answer
795 views

How to achieve fast transfers over 10Gbe

I'm trying to transfer files over 10 gigabit ethernet. However the maximum speed I can achieve between 2 RAM-Disks (mounted on /mnt on each node) is around 200MB/s: root@odin$ scp /mnt/largeFile marc@...
1
vote
1answer
173 views

Error when attempting to copy files w/ scp

I'm connecting to an Ubuntu instance, running some Apache/JMeter tests, and attempting to use scp to grab the log files from said tests. I connect w/ the following command: ssh my-host.amazonaws.com ...
1
vote
1answer
67 views

File copy fails over Ubuntu Gateway using NAT

I have managed to successfully set up NAT on my Ubuntu 14.04.4 machine so that my computer acts as a gateway for a computer connected on the internal interface (eth0) to the external interface (eth1)....
1
vote
0answers
771 views

ssh / scp / sftp slow. Transfers seems to be capped at ~64kb/s

Machine details: mediacenter@mediacenter-Aspire-R1600:~$ uname -a Linux mediacenter-Aspire-R1600 3.19.0-51-generic #58-Ubuntu SMP Fri Feb 26 21:22:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux ...
1
vote
1answer
2k views

scp to NAS permission denied

There are several ways to go, and I wish to find out about them. I have a file on our ad server. I have root access for the server, and wish to copy over a file to our ad NAS. The file is owned by a ...
1
vote
0answers
1k views

How to trace all the file transfered into my ubuntu server

I just started a task and I'm trying to get a list of the all file transfer that is happening on my server, from outside the server, mean user sending file through ftp or scp just, This task is just ...
0
votes
0answers
19 views

While already ssh'd into a remote compute node, how to transfer files to the remote computer from my local computer?

I want to transfer files and scripts from my local computer (ie. my laptop) to a remote computer (a compute node of an organization). I have to ssh three times to get to that node. Once there, how can ...
0
votes
0answers
18 views

How can I move a file from my computer to a remote machine, bypassing through a second computer?

I need to copy a program (which I have modified on my computer) to a Unix. I can't do it straight away because I need first to pass from another machine. I have tried with: scp /path/of/the/...
0
votes
1answer
25 views

Not able to scp file to AWS EC2 instance - the same pem key works fine for my colleague

I am trying to scp copy a jar file to AWS EC2 instance via Jenkins' job. The copy process fails with message "Host key verification failed" The same command works fine for my colleague who uses the ...
0
votes
0answers
11 views

scp zip transfer

I have some information in a volume attached to an AMAZON AWS AMI. The AMI was created to be published and used by anybody. The creators set up a root user, from which you can access to all necessary ...
0
votes
0answers
48 views

ssh, scp commands not working anymore. Giving very strange error message

I was using openssh client to connect to ssh servers. I never had a problem with ssh. However, for a few days, i got the following error : No user exists for uid 1000. When I try to run the command ...
0
votes
1answer
85 views

Duplicity (Duply) over SCP very slow. What to look for?

I'm struggling to setup a simple backup routine to go from my local fileserver over to my friend's server (both Ubuntu 18.04). I finally got it all 'working', but when I do a test of a 750Mb fileset, ...
0
votes
0answers
28 views

problem with a remote server scp

I have admin access to a remote computer with Debian linux. At first everything were working well. I tried to define some variables globally so that all users can run a specific code. Now I can't scp ...
0
votes
1answer
74 views

`scp -r` wont copy the directory I've selected in winows

I'm attempting to copy my desktop folder excelsite using scp -r. The folder is a django website. The command ive used is scp -r excelsite ***@***.***.*** (and yes, I was cd'd into the desktop). When ...
0
votes
0answers
40 views

Why should avoid use SCP with sudo

Can Please anyone explains to me why should avoid using sudo when used scp. I'll send a File from my Host to another Host, forward a time I to ready that best use scp without sudo, then later avoid ...
0
votes
0answers
151 views

SCP No such file or directory

I'm trying to copy backup files to my local system but i keep get the error No such file or directory. I'm logged on to the remote system using scp push to local system. scp -r /home/ark/server/...
0
votes
0answers
458 views

SCP not working when sending files from remote to local

I'm trying to send some files from a remote server to my local computer. Here's the command I'm using on the remote server that doesn't work: scp name@123.123.123.123:~/path/to/file.name C:\Users\...
0
votes
0answers
75 views

SCP from server1 to server2 using server0 over ssh

I want to send a file from server1 to server2 by accessing server1 from server0 on SSH. I have added all servers' pub_keys in authorized_files of all 3 servers. I can connect to any server from any ...
0
votes
0answers
466 views

Slow SFTP transfer speeds on local network

I'm getting really slow transfer speeds over SFTP of around 4MB/s on a laptop connected to a wired 1gbps LAN, whereas a desktop connected to the same network achieves ~80MB/s. iperf3 reports: [ ID] ...
0
votes
1answer
67 views

SCP transferred file does not appear on local machine

I'm trying to transfer files from a remote Ubuntu 16.04 server. To transfer the file, I execute this command: sudo scp -P 443 asgeir@my_ip:/home/asgeir/nodejs/first_test_app/server.js \Users\Asgeir\...
0
votes
0answers
351 views

Using scp -i to copy

I have two AWS EC" Ubuntu 16.04 instances. One is a Chef workstation and the other is a Chef Server. I want to copy the RSA private key file, chefadmin.pem, from the Chef server to the workstation ...
0
votes
1answer
45 views

Ping works, wireless connected, no stable internet

I have an old (2014) laptop that I've converted into a Linux desktop at home, mostly for storing extra stuff over scp. Today, the network of this machine slowed to a crawl. All packs installation ...
0
votes
2answers
483 views

How to use scp -i without prompting the key

I use the following line in a gitlab pipeline : scp -i "$SSH_PRIVATE_KEY" -r dist user@1.1.1.1:/home/user/preprod However when this line is executed the private key is prompted in the pipeline ...
0
votes
0answers
68 views

Copy file to another virtual host

I'm gonna copy file to virtual ubuntu via: scp -r hadoop hadoop-slave-1:/opt/hadoop But I get the error below: ssh: connect to host hadoop-slave-1 port 22: Connection timed out lost connection I ...
0
votes
0answers
217 views

How to copy file from Ubuntu computer to remote box via SSH?

How to copy files from Ubuntu computer to remote box via SSH using SecureCRT utility? So I'm connected to media box via SSH, then cd to target folder: next how to copy file from computer into the ....
0
votes
0answers
213 views

How to SCP a file from a different Partition of my system

I have a dual os machine(windows and ubuntu). I am currently using ubuntu and I want to copy a file from my machine to another. To do that I used the following command: scp /path/to/file user@xx.xxx....
0
votes
0answers
2k views

SCP to copy a file from Linux to windows is failing with Permission Denied error

I am using scp command to copy a file from Linux to Windows. It's failing with the mentioned log. Steps accomplished: Installed openssh in windows copied id_rsa.pub key to Linux box under .ssh/...
0
votes
1answer
136 views

How to managing ECDSA key fingerprints on mobile host

I have a number of automated scripts that use SSH authentication when connecting to a remote host (mobile robot in my case). The problem I have is that this robot is sometimes located in our lab, and ...
0
votes
0answers
874 views

Capturing the “progress bar” shown in a terminal

I am looking for the "verbose" output of scp, as shown by the following command, but excluding all lines containing debug1:: scp -v /path/to/some_very_large_file user@host:/home/user/test.deleteme 2&...
0
votes
0answers
7k views

SCP permission denied when copying from server to local

So I am setting up a vpn and I keep getting a permission denied error when I use scp. I've tried several methods (the ones I found online) but nothing seems to help. root@debian-512mb-fra1-01: scp ...
0
votes
0answers
605 views

IPv6 not working from terminal

I was able to scp files from my VPS using IPv6 but after some mess-ups (like using shadowsocks and Foxyproxy to circumvent GFW) with my Ubuntu 16.04 I have a strange problem. I can access IPv6 ...
0
votes
1answer
3k views

scp creates undesired file permissions

I'm trying to copy files from a remote linux system (on which I am not the super user) to my own local system, using the scp command on Ubuntu 16.04 LTS. scp remote_username@remote-host:/path-to-...
0
votes
1answer
2k views

How to fix No Such File Or Directory Error message while using SCP Command

I want to transfer file from Server to my local machine through SSH Connection. But i am getting No such file or directory error message. i have file following path: File Name is messageSentLog.log ...
0
votes
1answer
78 views

Copy app to Rackspace from Different Network

I want to copy files from my system to rackspace (aws), ( there is a way to use scp but i am in my office network, rackspace bought at aws), any package is there ? for this need. Help me to copy my ...
-1
votes
1answer
60 views

Scp any 100 files and its corresponding xml files to a remote pc?

I have around 2000 images in a folder.I need to scp 100 or 'n' no of files from the directory to a remote pc folder.I have the files as follows. 1. A.jpg 2.A.xml 3.B.jpg 4.B.xml..... etc How can i ...