Comments on: Pscp – Transfer/Copy Files to Multiple Linux Servers Using Single Shell https://www.tecmint.com/copy-files-to-multiple-linux-servers/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Fri, 14 Jul 2023 04:19:04 +0000 hourly 1 By: Vaneet https://www.tecmint.com/copy-files-to-multiple-linux-servers/comment-page-1/#comment-1521218 Wed, 16 Jun 2021 02:26:23 +0000 http://www.tecmint.com/?p=17486#comment-1521218 I believe if you have never logged into the target server from the source server before and it can’t establish authenticity of host and needs your yes/no for ECDSA fingerprint then the command will fail with error code 1.

]]>
By: Tejas Sankhe https://www.tecmint.com/copy-files-to-multiple-linux-servers/comment-page-1/#comment-1416648 Sat, 16 Jan 2021 06:57:07 +0000 http://www.tecmint.com/?p=17486#comment-1416648 Can we use pssh.pscp command to copy files from multiple servers in the list to one local server from where the pscp.pssh command is fired?

This commands works perfectly

# pscp.pssh -h myscphosts.txt -l tecmint -Av wine-1.7.55.tar.bz2 /tmp/
]]>
By: Sam https://www.tecmint.com/copy-files-to-multiple-linux-servers/comment-page-1/#comment-1324294 Mon, 30 Mar 2020 10:40:04 +0000 http://www.tecmint.com/?p=17486#comment-1324294 Hi bro your given command is perfect.

I go through some comments. Some have an error “Exited with error code 1”.

This is because they haven’t logged in that particular server from the system they have fired your command. Ask them to log in to the servers using “ssh”. This is one-time activity.

After that, they will able to use your command and get the “SUCCESS” output.

In the future they will use your command directly.

]]>
By: Cody https://www.tecmint.com/copy-files-to-multiple-linux-servers/comment-page-1/#comment-1126015 Fri, 05 Apr 2019 14:22:39 +0000 http://www.tecmint.com/?p=17486#comment-1126015 In reply to Ashwini R.

did you find an answer for this issue? I’m having the same problem

]]>
By: Ashwini R https://www.tecmint.com/copy-files-to-multiple-linux-servers/comment-page-1/#comment-1097200 Thu, 24 Jan 2019 13:43:50 +0000 http://www.tecmint.com/?p=17486#comment-1097200 It didn’t work for me as well. I can get into the machine through same ip and port as I’ve inserted into hosts.txt file. Still i get the below messages:

[root@node1 ~]# pscp -h myscphosts.txt root -Av LoadKafkaRN.jar /home/
[1] 13:37:42 [FAILURE] 173.37.29.85:22 Exited with error code 1
[2] 13:37:42 [FAILURE] 173.37.29.2:22 Exited with error code 1
[3] 13:37:42 [FAILURE] 173.37.28.176:22 Exited with error code 1
[4] 13:37:42 [FAILURE] 173.37.28.121:22 Exited with error code 1
]]>