Questions tagged [scp]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
32 views

Cant copy from my local machine to my online server even as a root user

I am trying to copy a folder as a root user from my local machine to my server using the command sudo scp -r simple-app.zip james@ip:/home/jobs But I keep getting permission denied every time. And ...
0
votes
1answer
41 views

Copy files recursively with directory structure from source server to Target server

I am trying to copy the files modified from specific date to current date from Source server to target server with same directory structure. I have created the script for copying files from Source ...
0
votes
1answer
26 views

using unison to copy files across a LAN

When I copy from one machine to another on my LAN, using scp, it opens a shell (in my case tcsh) and hence runs my rc file .cshrc. For various reasons, I'd like to bypass all of my .rc files when ...
2
votes
1answer
129 views

copying a directory from one location to another in the same server but the script to copy is present in another server

I am trying to write a script in a server which copies a directory present in another server and paste it in the same directory but at different location, what is the correct format for the SCP ...
0
votes
0answers
53 views

SCP/RSYNC don't work in Crontab but work when run standalone

I need to copy a backup file to a backup server everyday. I am using PublicKey SSH authentication. All of the things work but not together: If I run this line in crontab rsync /home/ubuntu/*...
1
vote
2answers
54 views

I can do ssh from server to local pc but not from pc to server

I can successfully ssh my local pc to remote server in a different network. But reverse is not working (server to local pc). I need to transfer the large files from server to my local pc and for that ...
1
vote
1answer
199 views

Permission denied (publickey). while using SCP command

I have tried to copy some file in tomcat using SCP command scp ubuntu@xxxxxxx:/opt/apache-tomcat-9.0.48/conf/server.xml . ubuntu@xxxxxxx: Permission denied (publickey). help me to get out this Thank ...
0
votes
0answers
43 views

Script excepting password

My script copying files from server to local, in the middle it's asking for server password... Is there any way to pass the password in the script, so that I should not enter manually? In Ubuntu I ...
0
votes
0answers
172 views

scp permission denied to /var/www/folder.com Permission denied

I am new to 'All of this'.... I am attempting to develop on a MacBook pro and publish directly to an ubuntu / nginx webserver. i have all of nginx and certs set up. when scp prompts me i enter an ...
0
votes
0answers
37 views

Allow copying files with scp without allowing users to log in and launch a shell

Is there a way to allow a user to access the server with scp, but without having premission to log in and launch a shell? The thing is that I want the better connection type with key files for all ...
0
votes
0answers
52 views

Passwordless scp from Ubuntu Server to Windows PC

I'm running Windows10 for my Pc and Ubuntu Server 18.04. I'm able to copy files from Ubuntu server to my Windows using SCP. However, I would like to be passwordless. These are what I have done: ...
0
votes
1answer
436 views

Failed to restart sshd.service

I try to run the command sudo systemctl status sshd. However, I get the message below. Failed to restart sshd.service: Interactive authentication required. See system logs and 'systemctl status sshd....
0
votes
0answers
178 views

Scp on Ubuntu Server

I'm running 18.04 Ubuntu Server. I'm trying to copy file from my Ubuntu server to my Windows PC. I have done some of the ssh configurations: install Openssh server on my Windows10 PC and it's enabled ...
0
votes
0answers
16 views

How to scp single files from multiple subdirectories into corresponding subdirectories

I’m fairly new to ubuntu and have come across a (probably) simple stumbling block. I have a main dir with named subdirectories that all contain multiple files. In each of these subdirectories I have ...
0
votes
0answers
37 views

scp permission denied when transferring files [duplicate]

I have 2 Ubuntu virtual machines on VMware workstation player 15. I want to import openvpn settings from a server to the client. I use the scp command, but I receive permission denied when using: scp ...
3
votes
2answers
425 views

Unable to transfer file from windows subsystem for linux to remote server

I am currently working on a windows 10 laptop. I have installed the ubuntu subsystem (instead of PUTTY) in it to access the remote server. When I launch the ubuntu subsystem from my windows start menu,...
1
vote
0answers
226 views

Transfer files using scp while connected to ngrok

I installed ngrok to connect via ssh to my work server from home or anywhere. The ssh connection works perfectly and I have easy access to my files. The point is that I do not know how to copy them to ...
0
votes
0answers
37 views

UNKNOWN group default qlen 100

when writing -ip add -and I can not find inet numbers. Evefrytime write - 3: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 100 - What I ...
0
votes
0answers
176 views

scp get stuck forever after enter password (from Windows to Ubuntu)

I'm using ssh from Windows 10 and connecting to remote Ubuntu server works well. but when I tried to copy a local file in Windows10 to an Ubuntu server, using scp: scp -P [port number] [source path] [...
0
votes
1answer
48 views

Copy a file between two Ubuntu instances

I have two Ubuntu instances running on two different virutal nodes (Docker). I want to copy a file from one node to another quite a few times from my python script. For now, I am testing with scp if ...
0
votes
0answers
29 views

scp hangs in->out and works normally out->in

The trouble machine is called gpu17 ssh works correctly scp in another machine to download a file, or upload a file works correctly ping has 100% packet loss have rebooted, no change Nothing seems to ...
0
votes
1answer
101 views

Do SCP and SFTP come installed on ubuntu by default?

I'm using a Ubuntu 20.04.1 LTS installed on a VM. I don't remember I installed SCP or SFTP yet when I try to login to it using (WinSCP on win10 machine) I'm able to connect to it. I suspect maybe they ...
1
vote
0answers
48 views

Samba 4,5 times slower than SCP

I'm getting out of ideas. I am using a RPi2 with ubuntu server 20.04.LTS to serve files with samba. I'm using ubuntu over the homes laptops but there are some windows and Android phones that are using ...
0
votes
1answer
45 views

transfer files to local from remote machine A via remote machine B [duplicate]

I must transfer several huge files from a remote machine A to my local computer. The problem is that I can not access A directly, but instead I must access via another remote machine B. Unfortunately, ...
1
vote
0answers
28 views

Connecting to a particular machine in a server

I am a beginner in this whole Ubuntu thing so I would appreciate to get some help, thanks ! I am trying to connect my Ubuntu machine (VirtualBox on Windows) to a distant server. After having done that ...
0
votes
0answers
61 views

Bash script copy remote directory to local directory only updates file

I want to remote directory to local directory.script works properly but I have face some issue every time SCP update all files. My use case only updated file is copy the remote directory to local ...
0
votes
2answers
94 views

How can I download a folder that contains spaces in its name? [duplicate]

I use this command to download a folder from another server: scp -r username@server:~/folder1/folder2/”Folder with spaces” It doesn't work, however for a folder without spaces it works. Edit: The ...
0
votes
2answers
370 views

scp, find files by names on remote and copy to local

I need copy all files from remote folder (there are subfolders) filtered by name to local, but with the same subfolder structure. I did ./sshpass -p 'XXX' scp -r tpx@192.168.1.6:/app/eretail/gaia/web/...
0
votes
0answers
209 views

How can I use scp from an ipv6 server to download from an ipv4 server?

I know the -6 option to download from an ipv6 server, the problem is that i'm on an ipv6 server , and try to download from an ipv4 server, how can I do it ? Here's the command that I use : scp -r ...
1
vote
2answers
185 views

Need help using the SCP command line

I have a server with Ubuntu 18.04 I want to transfer my website to a new server. Here are my questions : How to copy files with png extension ? I tried the following command line but it doesn't work : ...
0
votes
1answer
307 views

transfering data from one cluster to another

I would like to transfer my data from one cluster to another. for that, I know that I can write on the command line: scp -r Folder1 myname@XXX.YY.WW.ZZ:/work/myname However, I would like to submit a ...
1
vote
1answer
235 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 ...
0
votes
0answers
30 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 ...
1
vote
2answers
432 views

How to transfer / copy files from docker container to local directory in ubuntu 18.04?

I am using ubuntu 18.04 with virtual machine for running my program in remote GPU server. I ran my program in docker and I want to transfer plot files in docker container to local file directory in my ...
0
votes
1answer
274 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
2answers
947 views

How to compress and download directory from remote to local?

I have a directory on my Ubuntu server that has many subdirectories and files. I want to download entire folder, so I used this command: scp -r myuser@mywebsite.com:/path/to/target_directory /path/to/...
0
votes
2answers
593 views

How can I check condition statement for ssh scp over the server

myscp=$(sshpass -p testserver scp -rP 8888 root@localhost:/test/server/ ~/local/) How can I add conditional statement to this line? If its pipe broken scp will stop/break otherwise if it's open for ...
0
votes
1answer
451 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, ...
1
vote
1answer
32 views

Error copying folder using scp

I want to copy a folder from remote server. When I use this command to copy just a single file> scp -P 11096 user@server:FullPathToFile WhereToSave it works well, but when I use -r to copy the ...
1
vote
0answers
39 views

How to create a user that can only use scp? [duplicate]

I want to create a user (named as guest) in my server where I can share my files with others, I only give the guest permission to use scp to get the file with the password I provide, he can't log in ...
0
votes
1answer
291 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
188 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 ...
1
vote
1answer
149 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
votes
1answer
164 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 ...
0
votes
1answer
635 views

How to copy a file from my Windows laptop to an Ubuntu server while using PuTTY? [closed]

I have a remote server and I connect it via PuTTY software. I've downloaded a file to my Downloads folder in my Windows OS laptop. Now, I have to transfer this file to that remote server, using SCP ...
1
vote
1answer
340 views

SCP set permissions or timestamps even for user in the same group

I am not the owner but in the same group as a file. The file has -rw-rw-r-- permissions, and: beet ~> umask -S u=rwx,g=rwx,o=rx Over WinSCP, I am able to update the file but it produces this ...
0
votes
1answer
66 views

copying files remotely over ssh does not work

I tried to copy recursively a folder from my linux mashine to a remote one, but it did not work. I tried with both scp and rsync, but in both cases no files were copied, although I recieved a ...
1
vote
0answers
1k 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\...
1
vote
0answers
206 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
260 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
2 3 4 5