Questions tagged [scp]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
11 views

Can you sftp and scp into windows openssh with bash set as the default shell?

When the default ssh shell is set to powershell: New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe&...
user avatar
0 votes
1 answer
21 views

Copy folder from remote server to local system on windows

I am using following command to copy folder from remote server to my local system and I am on windows: scp -r user@example.com: /var/www/projects/files/styles/image_style_150_ppi/public/misc/ C:\Users\...
user avatar
  • 101
0 votes
0 answers
25 views

SSH config: is there a way to distinguish between ssh and scp commands?

I manage SSH connections to remote machines using a special ProxyCommand in my ssh_config file. Suffice to say it's structured like this: Host my-target IdentityFile /path/to/temporary-key ...
user avatar
0 votes
0 answers
19 views

File transfer speed : SCP vs Copy-Paste over SSH

Recently, I've been transferring some files between a device on my local network and my computer, and I've noticed something. For a text file of approximately 2.5Mb Transfer using scp file.txt user@...
user avatar
  • 101
0 votes
1 answer
125 views

Executing a python script via SSH on remote and scp on localhost

I am new to this and need some advice on resolving my problem. I have a python script on a remote server. I want to execute that script from my local system and then transfer the result file generated ...
user avatar
  • 101
0 votes
1 answer
37 views

scp works with /bin/sh default shell, but disconnects with /bin/bash default shell [duplicate]

I've recently set up a fairly minimal Debian server (fail2ban and ufw installed with the OpenSSH profile enabled) with a user with default shell /bin/bash: $ grep "$(whoami)" /etc/passwd ...
user avatar
0 votes
0 answers
26 views

Remote Command execution after scp transfer

I have been having some trouble doing remote execution after data transfer. Goal: SCP zipped data to a remote host then execute a remote command to unzip that file.I would prefer to do this in one ...
user avatar
  • 11
0 votes
1 answer
21 views

using shortcut (alias) to throw files to server with scp

Does anyone know how to do this? I scp to my vps a lot and I'm trying to create a shortcut. I normally connect with "ssh username" because I have a config file setup and use keys, but what ...
user avatar
1 vote
1 answer
57 views

Why can't scp resolve the second hostname?

I am trying to copy from one remote-machine to another using my local machine. Both remotes are added in the local ~/.ssh/config as follows: Host source Hostname <public-ip> ...
user avatar
1 vote
1 answer
18 views

SCP, transfer file across 3 computers

I'm having trouble understanding if it's possible to transfer a file from one PC to another passing through a third one. To explain better my situation: I have: My local PC (PC-1), where I have my ...
user avatar
1 vote
0 answers
30 views

SCP recursive copy with illegal Windows filenames

I've been looking all morning, and I can't seem to find a straightforward answer to this. I have a remote Linux box, and a local Windows one, executing: scp -r blah@remotelinux:/somewhere/else ./ ...
user avatar
  • 123
1 vote
0 answers
93 views

Scp Tab completion for remote wsl bash does not work as the other way round

On wsl(ubuntu), I can do scp somefile ubuntu:somepath, and use tab completion for the somepath, as I use keys to ssh. But I cant do this in reverse. On remote ubuntu I do scp somefile wsl:, and then ...
user avatar
0 votes
0 answers
51 views

Difference between scp and sftp within curl

I have encountered a serious problem with curl. I want to copy a file from a raspberry on a remote server working under Windows 10. RSA key is installed on the server, everything is working ...
user avatar
  • 101
0 votes
1 answer
37 views

Open WinSCP stored session using commandline

I want to open WinSCP GUI and have it open a stored session automatically, need it for a Windows shortcut to a stored session. I was hoping this could be done using a commandline option. Been looking ...
user avatar
  • 242
0 votes
1 answer
51 views

scp error: unexpected filename . / n00b dealing with Chef on Ubuntu

I am very new to the Ops world, like really really new so often what I do might feel like copy/pasting and I wouldn't know what command means what and what an argument is, so please bear with my ...
user avatar
0 votes
0 answers
34 views

How do I send files from my personal computer to a cluster?

I know to send files onto my laptop from the cluster, I do something like: scp username@remotecomputer:/path/to/file/you/want/to/copy where/to/put/file/on/laptop But what about uploading a file from ...
user avatar
1 vote
0 answers
68 views

How to find the port used for SCP?

I'm trying to copy a file from my local (Windows 10, Cygwin) machine to a remote (Raspberry Pi) machine using scp, I get a time out error: $ scp main.bin root@123.12.21.123: ssh: connect to host 123....
user avatar
  • 2,488
0 votes
0 answers
79 views

scp stopped working in the middle of a large file transfer to SSH server with Nautilus

I have a Fedora 35 home server set up. I use sshd with the default settings. Up until today, I could ssh and scp without any issues and had no problems with this machine. This morning, from my two ...
user avatar
  • 43
0 votes
2 answers
42 views

How do I connect three machines (one PC and two laptops) together though ssh tunnel?

I am a student at a college and therefore am very limited over what I can do with routers and whatnot. I need my PC tower to have ssh access to my school laptop and to my work laptop. I need these ...
user avatar
0 votes
0 answers
34 views

How can I do differential/incremental backups over a network on Linux when there isn't enough space for a duplicity cache?

I have a NAS running a Linux server distribution and I want to setup automated incremental/differential backups to another Linux server at a different location over the Internet. At first, I wanted to ...
user avatar
  • 326
0 votes
1 answer
59 views

Unable to sudo scp with ssh key

I need to run a script that contains some instructions which must be run as root, and a scp: sbt assembly # requires sudo scp -r -p myfile root@myserver.com:/root/spark/root # doesn't require sudo I ...
user avatar
  • 111
0 votes
0 answers
266 views

SSH Network is unreachable

I have 2 ubuntu systems , 1 lan cable. I need to transfer data(FILE OR DIRECTORY) using lan cable.( Note : there is no online network connection) I tried using ethernet and connected both ends in ...
user avatar
0 votes
0 answers
31 views

SCP hanging when uploading large amount of files

I am transferring a large amount of files, about 17,000, from my computer to an EC2 instance with an S3 bucket mounted to it. For some reason, I only ever get somewhere between 200 to 400 files ...
user avatar
  • 1
0 votes
1 answer
44 views

Cannot send file from local machine to the server using SCP despite being able to login via SSH

I am trying to send file from my local machine (Ubuntu) to Oracle VM (Oracle Linux). Command I tried is below, but it doesn’t work. I can connect to the server fine using SSH. scp -r -i /...
user avatar
  • 101
1 vote
1 answer
162 views

scp - permission denied (publickey)

I am able to ssh into a remote server ssh -i "C:\Users\kong\Documents\prl.ppk" haziq@10.0.1.111 but not able to scp scp -i "C:\Users\kong\Documents\prl.ppk" kong@10.0.1.111:~/...
user avatar
  • 575
1 vote
1 answer
50 views

scp w/ BindAddress

Apologies if I get some terminology wrong here, I'm very much not a networking expert. I have a server on my local network but am connected to a VPN, and to reach the local server via ssh on my Mac, I ...
user avatar
  • 135
0 votes
0 answers
44 views

ssh works but not scp - Permission denied (publickey)

I am able to ssh into a remote server ssh -i "C:\Users\kong\Documents\prl.ppk" haziq@10.0.1.111 but not able to scp scp -i "C:\Users\kong\Documents\prl.ppk" kong@10.0.1.111:~/...
user avatar
  • 575
1 vote
2 answers
189 views

Upload files to Backblaze B2 with SFTP or FTPS or SCP?

We have a Backblaze B2 business account, and from my understanding it should be possible to upload files using SFTP. Or alternatively FTPS or SCP would also be fine (I just want to be able to upload/...
user avatar
  • 23
0 votes
0 answers
99 views

rsync and scp start but stuck at 0% and then timeout

I am struggling to copy files from a server(ServerA) via scp/rsync to my machine (ServerB). The problem is weird since some rsync commands work and keyless ssh login also works. However the ...
user avatar
  • 113
0 votes
1 answer
40 views

Script SCP with public key

I need to configure a script to copy some files from one Ubuntu server to another. The key uses is allowed in the authorized_keys on remote server. I'm trying to configure this script: #!/bin/sh #...
user avatar
0 votes
0 answers
126 views

Transferring data from Windows to Ubuntu is way slow

I'm trying to upload a 6GB file from Windows to a (remote) Linux machine. Results: over both SFTP and SCP (WinSCP): tx speed is 90-100kbps. over plain insecure FTP (FileZilla): tx speed is 80-100kbps....
user avatar
  • 253
0 votes
1 answer
73 views

scp transfer through an intermediate host

I have 3 servers: A, B, C and need to transfer a file from A to C. ssh is only possible from A to B and from C to B (see below), because A and C are on 2 different VPNs. A → B C → B SSH is not ...
user avatar
0 votes
2 answers
101 views

rsync through ssh proxy using a key that is on the proxy

I am trying to copy files using rsync from a server A, to a server C, through a bastion server B. A -> B -> C This can be achieved normally through using the -e option, like: rsync -e 'ssh user@...
user avatar
  • 3
0 votes
1 answer
193 views

scp fails with -T in different scp versions

I'm having a strange behavior with scp and the option -T in Ubuntu 16. On one PC with scp version 1:7.2p2-4ubuntu2.8 I run the command to scp a file from remote PC to my local PC and the file gets ...
user avatar
0 votes
0 answers
161 views

can't find scp file from remote server on my local machine

I copied file from remote server, through SSH scp command, on my local machine. using realpath command I see that it exist on my machine but when I try to open it, it says that : no such file or ...
user avatar
  • 1
-1 votes
1 answer
46 views

Is openssh-server safe on a local network?

Quick description of my situation: 2 home use computers, both connected to a standard AT&T router. Both computers get a 192.168.1.x IP address from the router. I have no idea what the IP of the ...
user avatar
  • 163
0 votes
0 answers
19 views

Cannot export out terminal output in linux

I tried to capture the output to the terminal by using following script <filename> After performing some actions and capturing some responses from terminal, I inputted in exit However, when I ...
user avatar
2 votes
1 answer
186 views

scp from linux to an external drive on mac

I have been using the following command to copy between a linux machine and a mac and it works fine: scp -r /home/ubuntu/Desktop/somefolder username@ipaddress:/Users/username/Documents/somefolder But ...
user avatar
  • 141
1 vote
2 answers
2k views

How ca I make CentOS 7 accept SSH while denying SCP?

On a CentOS 7 server, I'd like to configure it such that: It accepts SSH connections, like PuTTY It denies SCP/SFTP connections, like SCP, WinSCP, and FileZilla Is such a configuration possible?
user avatar
0 votes
1 answer
290 views

Port 22 won't open even after enabling it on Windows Firewall settings

I'm currently trying to transfer file between my two local computer (laptop running Linux & PC Windows 10) by SHH using scp cmd, see here I'm trying to transfer from Linux laptop to Windows PC. ...
user avatar
0 votes
1 answer
381 views

Is there any difference between default scp and PuTTY pscp (with -scp) protocols?

I'm trying to automate a task that requires remote file transfer. The file provider manual specifically says that It needs a pscp (PuTTY version of scp) call to be made, and also already includes the ...
user avatar
0 votes
1 answer
63 views

How to SCP from remote Windows to host Linux if the source path has more than 8 sub-directory levels?

I have a remote windows machine with built in openssh server on it. I tried to scp a folder named 0 from my home dir in remote Windows to local Downloads: scp -r micro:0 Downloads/ The results in ...
user avatar
  • 101
0 votes
0 answers
26 views

Transferring a file from a Linux machine to a mac Os using SCP program

I have successfully transferred a file from a Linux machine to windows. But I am unable to transfer the file to a MacBook Air that I have. I have already tried going to system preferences and was able ...
user avatar
-2 votes
1 answer
325 views

Native SCP in Windows 10 (scp target is Windows)

I didn't know that Windows natively supports SCP (Secure Copy): e.g. scp "C:\somefolder\somefile" someuser@192.168.1.1~/somefolder/somefile Is there only this "client option" to ...
user avatar
  • 7,644
0 votes
1 answer
605 views

SCP is not working when running it on linux to Windows machine

We have OpenSsh installed and running on remote windows server. When I connect to it through Remote Desktop and run scp on command prompt it gives all the available options for scp commnad. but when I ...
user avatar
  • 111
1 vote
0 answers
78 views

SSH is working but Scp is not on Windows 2008 server

I have to build a logic in our Micronaut application to scp a file from remote windows 2008 server to local (tried with both windows and Mac) Using JSCH api. So OpenSSH has been setup on the windows ...
user avatar
  • 111
1 vote
1 answer
594 views

Copy file from local to remote SSH with spaces in username

I have to copy a file from my local machine to a remote server. The problem is, from what I'm understanding, is the space in my username ("User Name"). I've tried the following in command ...
user avatar
0 votes
0 answers
94 views

feed file list found by grep to scp command

I'm running a local terminal (cygwin-esque), and I'd like to combine two commands into one: xzgrep -l -e 'pattern' * filename * scp user@host 'output of above' /local/path Thanks for any advice :)
user avatar
  • 1
0 votes
0 answers
559 views

scp Ready-only file system

Im trying to transfer files from remote to local machine. I do usual scp <user>:<serverIP>:path/to/remoteFile path/to/localFile but it gives me path/to/localFile Read-only file system. ...
user avatar
0 votes
1 answer
176 views

Cannot scp files from remote server to computer

I'm renting a dedicated server, and I wish to copy some files from that server and onto my personal computer. The server is running Ubuntu LTE 20.04, and is SSH enabled. SSHing into the server works ...
user avatar

1
2 3 4 5
14