Questions tagged [scp]

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

Filter by
Sorted by
Tagged with
-1 votes
0 answers
37 views

SCP: Down- & Uploading only possible via Powershell

I haven't been able to do it for months with Putty, Bitvise... Downloading and uploading via Powershell works. But via Putty and Bitvise impossible - although SSH works. Bitvise has an SCP browser. ...
nooboverflow's user avatar
2 votes
0 answers
222 views

SCP Connection Refuses while SSH Works [Ubuntu 22.04]

Running Ubuntu 22.04 as a server and I’m encountering an issue with SCP. While I can SSH into it without any issues, attempting to transfer files via SCP [From a Windows 10 Machine on the same network]...
N00B_141's user avatar
-1 votes
1 answer
94 views

Transfer from local Windows machine to remote Linux server

Sometimes I cannot access my work server from FileZilla (which I use to transfer files from my Windows laptop). I tried to transfer files from the command line using: scp -P myport D:\Users\myname\...
LT17's user avatar
  • 99
4 votes
1 answer
124 views

Secure remote copy with exceptions

In order to use some data that are stored and produced remotely I first download them via scp servername:/.../big_directory/* ~/. There are many files and the command includes everything. These files ...
SO_32's user avatar
  • 153
0 votes
0 answers
37 views

How to transfer very large folders from a server which I access sudo and ssh to another server with ftp access?

I have some big folders (each around 1T) on a server which I have sudo access to that. I want to transfer them to another server which I have ftp access (with username and password). What it came in ...
Nmgh's user avatar
  • 1
0 votes
0 answers
24 views

scp - lack of consistency

I've observed a strange behaviour copying files from a remote server with scp. I had a directory containing many subdirectories with files. directory ├── directory1 │   ├── file1.txt │   ├── file2.txt ...
maciejwww's user avatar
  • 201
1 vote
0 answers
147 views

How to by-pass 2FA with Google authenticator when loging into remote server via ssh [closed]

I'm part of a research team where we have to do many simulations on several remote servers. The feebleminded server maintenance team has set up a Google authenticator-based 2FA whenever we log in to ...
Swedish_Physicist's user avatar
0 votes
0 answers
47 views

Issue regarding copying

I have one file which is of 60GB i need to copy it to cloud server from local server steps i am following I am splitting file (nohup split -b 10G filename.gz &) into chunks which is of 10GB and ...
prudhvi's user avatar
0 votes
0 answers
153 views

Why does this scp copy from Windows fail when copying the containing folder, but not when coping the individual contents?

I'm using scp to copy a folder from Windows 10 back to Ubuntu 20.4 (all software has been updated). $ uname -a Linux ray-desktop 5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022 ...
Ray Butterworth's user avatar
0 votes
1 answer
413 views

scp only files not already in target directory

I'm trying to copy a large number of files from my local machine down to my server using scp. The problem I'm having is it takes a while and my internet occasionally drops. So I would like to update ...
user3476463's user avatar
0 votes
2 answers
68 views

How to run remote crontabs?

We want to run a certain backup process via one server, basically like the following: Server 1 runs a process that copies data from Server 2 to the backup location. Is there a script that I can write ...
ReeceAB's user avatar
0 votes
1 answer
218 views

How to "scp" files from a source server and equally divide them among three destination servers?

I am looking for a script to copy files from a source Server directory /opt/Test to be equally divided between three destination Server directories with non sequential order. For instance I want to ...
sunman's user avatar
  • 43
0 votes
1 answer
1k views

Can't scp from linux ubuntu server to local windows machine

I want to transfer a file from my remote linux ubuntu server to my local windows machine but it give me this error ssh: Could not resolve hostname c: Temporary failure in name resolution here is the ...
tiberhockey's user avatar
2 votes
0 answers
240 views

ssh / scp issues - Ubuntu 18.04.6

I have installed Ubuntu 18.04.6 on my server and I am facing issue trying to get access trhu SSH besides copy data by SCP. In both cases the commands getting hang.... btw I see many other folks with ...
Luis Aguilar's user avatar
2 votes
1 answer
15k views

how to set/change a static IP in "Ubuntu on Windows" (WSL)

I have installed ubuntu on my PC (Windows) but I can not set an IP... It seems there is a default IP(eth0) and we are not able to change it... 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc ...
Luis Aguilar's user avatar
0 votes
0 answers
30 views

Config command for -l argument in scp?

Is there a command in the $HOME/.ssh/config file that maps to scp's -l argument to limit the transfer rate? My actual goal is to be able to use rsync to copy files via SSH with a transfer rate limit. ...
Cal-linux's user avatar
  • 123
1 vote
1 answer
722 views

Cannot SCP into Oracle VM, SSH is working

I have an Oracle OCI instance with Ubuntu running and I'm trying to upload my website into it. I've enabled HTTP connections and everything seems to be working fine (I can see my index html page under ...
Andrei's user avatar
  • 11
0 votes
0 answers
48 views

Error in STM Code after compliling on Ubuntu

I'm following this tutorial for setting up the STm32MP157C-DK2 microcontroller. On the steps for creating a basic hello world program, I am able to compile a program and upload it to the STM through ...
Ben Underwood's user avatar
0 votes
0 answers
102 views

How do I check if the ssh connection is correctly set up?

I need to transfer data using scp from ubuntu server1 to ubuntu server2. I have created and set up ssh credentials between the two servers. How do I check if the ssh connection is correctly set up?
jayozeus's user avatar
0 votes
2 answers
231 views

Transfer files between a HPC computer to my local computer having another server between

I am working on an ssh Linux server that is on other servers. To log in I have to log first into the first server and then from this go to the server I work. I do this with an alias ssh -J first@ssh....
Manuel Dominguez Becerra's user avatar
0 votes
1 answer
287 views

Is there an easy convertor between dpkg --print-architecture and uname -m for generic scp?

I want to copy files that relevant to my machines (x86_64 / aarch64) from remote machines. I want to use: scp user@host:*$(uname)* . to copy both wheels and .deb files, e.g.: name-x.y.z-cp36-cp36m-...
CIsForCookies's user avatar
0 votes
1 answer
211 views

Can logint to remote server via SSH but cannot copy file via scp: Host key verification failed

So I have set up with 3 VM running Ubuntu 20.04 server. What I am trying to do is copy a folder from machine 1 to machine 2 and then another folder from machine 1 to machine 3. All machines have ...
milenmk's user avatar
  • 101
0 votes
0 answers
79 views

ssh/scp into same gateway name but different port

I am trying to ssh from one server user@same_gateway -p some_port into another server user@same_gateway -p another_port but it doesnt seem to work, it displays nothing. Is this due to use of same ...
masterkni66's user avatar
10 votes
7 answers
5k views

How can I perform a secure automatic file transfer between two servers?

I would like to transfer some files from a server A to a server B daily (for backup purposes). However, I cannot find a way that does not create security breaches. My goal is that someone with sudo ...
Joseph Budin's user avatar
1 vote
0 answers
228 views

scp kept getting disrupted

I am copying a file from my local windows machine to a remote server running Ubuntu with scp -v *source* *dest*. However in the process I am constantly getting this chain of disruptions debug1: ...
tangolin's user avatar
  • 111
0 votes
0 answers
1k views

Copying from remote server to local using SCP/ Name of service not know ssh error

I am trying to copy a folder from a secured remote server to my local disk. When I try to copy with the following: [banikr@vcn1 rat_SCI_data]$ scp -r /MAL_Test_Case/ banikr2@banikr:/media/banikr2/DATA/...
banikr's user avatar
  • 41
0 votes
1 answer
52 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 ...
Jaimes Sese's user avatar
0 votes
1 answer
793 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 ...
Amala's user avatar
  • 1
0 votes
1 answer
147 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 ...
Leo Simon's user avatar
  • 1,529
2 votes
1 answer
1k 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 ...
Aman Srivastava's user avatar
0 votes
0 answers
462 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/*...
Salvatore Faraone's user avatar
1 vote
2 answers
626 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 ...
softy's user avatar
  • 141
2 votes
1 answer
7k 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 ...
AKASH-29's user avatar
1 vote
0 answers
4k 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 ...
roket's user avatar
  • 73
0 votes
0 answers
121 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: ...
jnn's user avatar
  • 1
0 votes
1 answer
4k 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....
jnn's user avatar
  • 1
0 votes
0 answers
3k 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 ...
jnn's user avatar
  • 1
3 votes
2 answers
2k 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,...
The Great's user avatar
  • 133
2 votes
1 answer
2k 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 ...
Henry Navarro's user avatar
0 votes
0 answers
785 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] [...
starriet 주녕차's user avatar
0 votes
1 answer
102 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 ...
Tabz's user avatar
  • 1
0 votes
0 answers
57 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 ...
WurmD's user avatar
  • 111
0 votes
1 answer
589 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 ...
otto_'s user avatar
  • 1
1 vote
0 answers
155 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 ...
NicoWeb's user avatar
  • 11
0 votes
1 answer
161 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, ...
danny_met's user avatar
1 vote
0 answers
35 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 ...
ubuntumc's user avatar
0 votes
0 answers
167 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 ...
Farhan Hameed's user avatar
0 votes
2 answers
629 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 ...
assilmanss's user avatar
0 votes
2 answers
1k 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 [email protected]:/app/eretail/gaia/web/...
genderbee's user avatar
  • 850
0 votes
0 answers
772 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 ...
assilmanss's user avatar

1
2 3 4 5