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
1 answer
44 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 ...
2 votes
0 answers
64 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 ...
2 votes
1 answer
844 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 ...
0 votes
0 answers
13 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. ...
  • 111
1 vote
1 answer
155 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 ...
  • 11
0 votes
0 answers
29 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 ...
0 votes
0 answers
32 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?
0 votes
2 answers
75 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....
0 votes
1 answer
129 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-...
0 votes
0 answers
272 views

pseudo-terminal will not be allocated because stdin is not a cli - what does this mean and why might it be happening

When trying to cat piped to ssh from a linux node server to this windows 10 laptop I get this message: Pseudo-terminal will not be allocated because stdin is not a terminal Why is this happening? What ...
  • 13
0 votes
1 answer
83 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 ...
  • 101
0 votes
0 answers
36 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 ...
10 votes
7 answers
3k 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 ...
1 vote
0 answers
148 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: ...
  • 111
0 votes
0 answers
657 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/...
  • 41
0 votes
0 answers
64 views

Copying files from docker container to Ubuntu virtual box

I am trying to copy files from my docker container to Ubuntu 20.04 running in virtual box. I tried with docker cp command as: docker cp images/rootfs.ext4 :./Projects But this doesn't work. 'Projects'...
0 votes
1 answer
38 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
1 answer
348 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 ...
  • 1
0 votes
1 answer
50 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 ...
  • 1,459
2 votes
1 answer
751 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
0 answers
237 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
2 answers
220 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 ...
  • 131
1 vote
1 answer
3k 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
0 answers
273 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 ...
1 vote
0 answers
1k 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 ...
  • 73
0 votes
0 answers
83 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: ...
  • 1
0 votes
1 answer
1k 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....
  • 1
0 votes
0 answers
1k 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 ...
  • 1
3 votes
2 answers
900 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,...
  • 133
1 vote
1 answer
799 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
0 answers
445 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] [...
  • 101
0 votes
1 answer
75 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 ...
  • 1
0 votes
0 answers
35 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 ...
  • 111
0 votes
1 answer
262 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
1 vote
0 answers
125 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 ...
  • 11
0 votes
1 answer
87 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
0 answers
30 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
0 answers
146 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
2 answers
335 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
2 answers
786 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/...
  • 810
0 votes
0 answers
419 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
2 answers
316 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 : ...
  • 13
0 votes
1 answer
637 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
1 answer
400 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
0 answers
44 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
2 answers
768 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 ...
  • 113
0 votes
1 answer
416 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 ...
  • 43
0 votes
2 answers
2k 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/...
  • 125
0 votes
2 answers
978 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
1 answer
554 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,269

1
2 3 4 5