Can't SCP from proxmox VE 5.2 to Proxmox VE 6.2

Jun 29, 2020
7
0
21
50
Hi !

I'm new person on this forum, but I work with PVE from the 3.2 version.

I've implemented 2 years ago 2 proxmox ve 5.2 servers. Now, and to prepare my new proxmox solution (which will become a cluster of 3 servers), I have ton transfert my CTs and VMs from the 5.2 servers to the new 6.2 server.

If I can use scp between my tow 5.2 servers, the command does nothing between 5.2 and 6.2.

Is there anything special to do after the installation of proxmox VE to make scp running as well ?
Thank you for help.

Regards.
 
Hi,

If I can use scp between my tow 5.2 servers, the command does nothing between 5.2 and 6.2.

Maybe you can post an example command you're using? I use things like:

Bash:
# single file
scp path/to/single/file.deb root@192.168.30.48:
# or whole folder
scp -r /mnt/pve/backups/ root@hostname.domain.local:/mnt/pve
daily, often also between multiple different Proxmox VE versions.

What I often forget when typing hastily is the colon : after the target user@host as then scp just copies it locally to that name...
 
Thanks for your answer.
The command I use is :

# scp /var/lib/vz/backup-vz/vzdump-lxc-1009-2020_07_09-08_28_28.tar root@192.168.1.15:/var/lib/vz/dump/

When I push Enter, a new empty line appear, but nothing is written into about the copy.
 
The command work fine !

# ssh root@192.168.1.15
Linux proxmox3 5.4.34-1-pve #1 SMP PVE 5.4.34-2 (Thu, 07 May 2020 10:02:02 +0200) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Jul 9 08:46:39 2020 from 192.168.1.159
#
 
I've just test the backway : copy with scp from PVE 6.2 to PVE 5.2, and here is the result :

e# scp centos-6-default_20191016_amd64.tar.xz root@192.168.145.236:/var/lib/vz/template/cache/
root@192.168.145.236's password:
centos-6-default_20191016_amd64.tar.xz 0% 0 0.0KB/s --:-- ETA

The copy seem to start but nothing is running too
 
Weird! Is this a vanilla installation from the official Proxmox VE ISO?

Maybe you could try to workaround this by doing a "manual" scp:
Bash:
tar czf - vzdump-lxc-1009-2020_07_09-08_28_28.tar -C /var/lib/vz/backup-vz/ | ssh root@192.168.1.15 tar xzf - -C /var/lib/vz/dump/
 
I downloaded it from proxmox official repositery, using the Web UI
1594275495524.png

Your command do nothing too...
I can copy between my proxmox by using my NFS shares mounted on a NAS. So I get a solution, but I don't know why this command scp doesn't work.

And I remember that I coul'd use it by the past to implement my ntp configuration. But the file I copied was very small (ntp.conf).
Thanks again for your help.
 
maybe your .bashrc / .bash_profile or some other file which gets initially executed after ssh connected breaks non-interactive commands? At least that's my best guess for now.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!