New answers tagged

0

scp username@ipaddress:pathtofile localsystempath scp sadananad@ipaddress:/home/demo/public_html/myproject.tar.gz . If your using with port, scp portnumber username@ipaddress:pathtofile localsystempath scp -p2233 sadananad@ipaddress:/home/demo/public_html/myproject.tar.gz .


1

Here is fragment from my working script. send_user "FILE \"FILETEMPL\" is copied to active.\n" spawn scp -l 60 FILETEMPL root@IP:PATHTEMPL/FILETEMPL # After scp we should wait "#" or "100%". set timeout 600 expect { "password: " { send "PASS\r" expect { "100% " {...} "password: " { ...


2

There might be a limit on 32 bit versions of these applications, especially older versions not compiled with "large file support". Those problems were not a result of packets being dropped, but on writing (and/or reading) the files at the appropriate size. Back in 1995 there were similar problems with tar under Irix not support files > 2Gb. So make sure you ...


0

I got a fix to the issue. 1. I created a new shh key-pair under jenkins user. 2. Added the .pub key to the remote server. While doing ssh from the jenkins server the newly generated private key is used. Now both ssh and scp work as part of the build step. Thank you


2

The hosts key needs to be added to the "known_hosts" file of the client, in your case the user, under whos account the jenkins server is run. So what you need to do is: Enable ssh login for the jenkins-user log in as jenkins ssh to the remote server answer the question "should the servers identity be added.." with yes.. Then you're done. Afterwards, the ...


0

This worked for me #!/bin/bash #Expect script /usr/bin/expect -<<EOD set SERVERS {1 2 3 .. N} foreach SERVER \$SERVERS { spawn scp user@\$SERVER:remote local/"\$SERVER"RESWeb.log expect { -re ".*es.*o.*" { exp_send "yes\r" exp_continue } -re ".*sword.*" { exp_send "pswrd\r" } } expect ...


0

Really work will be: $ smbclient //server/share -c 'cd c:/remote/path ; put local-file remote-file' local-file - file from local machine remote-file - copy to this file on remote machine


1

Did you try until scp myfile root@xx.xx.xx.xx:/myhome; do :; done?


2

You can use a basic while loop for this: while ! scp myfile root@xx.xx.xx.xx:/myhome; do sleep 1 done



Top 50 recent answers are included