Skip to content
Advertisement

Tag: scp

Unable to pass filename with space through variable to SCP command

I am trying to set the variable $file as “Unavailable Voucher’s Report_Apr-2017.txt”. It is getting set to the variable successfully. But I am getting an error when I use this variable in a SCP command inside my script. I have tried to replace the ‘ ‘(space) with ‘ ‘(escaping space), still no use. Error be like: Answer Try to double

How to abort scp on failure using a flag?

Assuming scp 1 2 3 4 myhost:. is there a way to specify in the scp command to abort when the first failure occurs? scp default behaviour is to continue to the next file and not to stop and of course that can be addressed programmatically however looking for more ‘elegant’ approach if such exists. Answer No. SCP is simple

open file from remote host with Kate

Is it possible to open a file from a remote host with Kate like you can with vim: vim scp://root@cc3//var/log/dp.log? I’ve tried the following but neither option seems to work: kate scp://root@cc3//var/log/dp.log & and kate fish://root@cc3//var/log/dp.log & Answer By design, Kate interacts with user by dialogs, while you can also start editing a file in kate from command line with:

How to delete target folder created using scp by target user

I have a machines A B C. only Machine B have access to A & C. For machine A I have root access , machine B I have root access and for machine C I have User level access. 1.2.3.4 is the ip address assigned to machine B. When I am doing from machine A as scp -pr ./logs/ root@1.2.3.4:/common/tftpboot/

(Scp – Permission Denied (Public Key) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

Copy file from remote server to local server not working [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

How to copy files and folders from one remote server to another remote server using scp command? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

Advertisement