Hello, here how to transfer files or directory between two Linux machines :
How to sftp file from server A to server B
Server A= 1.1.1.1
Server B= 2.2.2.2
1- SSH to server B 2.2.2.2
2- then run below command
3- ls command to list files
4- To download the single file to server A
5- Or to Download the whole directory
Thanks to Shata
How to sftp file from server A to server B
Server A= 1.1.1.1
Server B= 2.2.2.2
1- SSH to server B 2.2.2.2
2- then run below command
3- ls command to list files
4- To download the single file to server A
5- Or to Download the whole directory
Thanks to Shata