Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

scp does not return error nor copy

Tags:

linux

scp

I am trying to scp a file from my local machine to a server. scp returns me a series of stars like this without copying any file:

[xx@xx ~]$ scp xx.tar [email protected]:~
[email protected]'s password:                           
****************************************************************

So the first thing: I entered the password correctly.

I also checked to make sure that scp works with other servers (only not this one).

scp works on this server, meaning that I can pull files into the server from a terminal logged on. Errors only happen when I try to push files into the server from other places. I tried different machines, they are all the same.


1 Answers

Try using absolute paths.

In other words, try ~/xx.tar IF IN FACT xx.tar in IN ~! Otherwise maybe something like: /absolute/path/to/xx.tar

like image 150
Douglas Denhartog Avatar answered Jan 26 '26 12:01

Douglas Denhartog