How to copy files from server1 to server2 via SSH with just one command line, and am I not logged in to any of them?
I'm on a 3rd machine. And I have the credentials of both.
How to copy files from server1 to server2 via SSH with just one command line, and am I not logged in to any of them?
I'm on a 3rd machine. And I have the credentials of both.
You can do this quietly, just use the scp command.
scp usuario1@host1:path/* usuario2@host2:path/*
If the copy is only of files use /*
if it has folder use -r
in scp.
scp -r usuario1@host1:path usuario2@host2:path
use scp; Log in to the machine and send it to the machine b
$ scp / var / lib / files [email protected]: / home / damasceno
scp arquivo usuario@servidor:/home/usuario
Do not roll?
If you are using Linux and are in a graphical environment, open the TERMINAL (Depending on the Interface that is Ex .: Gnome, Kde, LXDE ...), open three tabs and see the source / target content that you want to copy.
Or if you're on Windows, use Putty .
Once this is done, run the command:
scp "nome do arquivo / diretório " "nome do usuário"@"endereço ip da máquina":/"destino"