scp

Smart way to copy multiple files from different paths usinc scp

只愿长相守 提交于 2019-12-12 07:49:34
问题 I would like to know an easy way to use scp to copy files and folders that are present in different paths on my file system. The ssh destination server requests a password and I cannot put this in configuration files. I know that scp doesn't have a password parameter that I could supply from a script, so for now I must copy each file or directory one by one, writing my password every time. 回答1: in addition to the already mentioned glob: you can use {,} to define alternative paths/pathparts in

How to scp to Amazon s3?

馋奶兔 提交于 2019-12-12 07:31:20
问题 I need to send backup files of ~2TB to S3. I guess the most hassle-free option would be Linux scp command (have difficulty with s3cmd and don't want an overkill java/RoR to do so). However I am not sure whether it is possible: How to use S3's private and public keys with scp, and don't know what would be my destination IP/url/path? I appreciate your hints. 回答1: You can't SCP. The quickest way, if you don't mind spending money, is probably just to send it to them on a disk and they'll put it

Cygwin ssh: lost connection after accessing remote host with id_rsa, id_rsa.pub keys

核能气质少年 提交于 2019-12-12 05:12:54
问题 My goal is to copy files programatically from remote server to local computer. Both running Windows with Cygwin (server) and computer Cygwin 64. Before I create rsa or dsa keys I can copy files by entering Password But after creation of these files, I have "connection closed by remote host. lost connection" error I gave following rights: "chmod 600 .ssh/id_rsa" (on local computer) and chmod 600 ".ssh/authorized_keys2". What is the problem who can answer to me? $ ssh login@hiddenhost

Maven Ant SCP error

岁酱吖の 提交于 2019-12-12 04:25:37
问题 when I run a "maven-antrun-plugin" (maven 3.0.3) with the ant-command: <scp /> I get: Problem: failed to create task or type scp [ERROR] Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.Scp was not found. I checked in my $ANT_HOME/lib and the jar is there (ant-jsch.jar). What's the problem? BTW I'm using ubuntu 11.10. Ant is downloaded from the website (as from the ubuntu's repository I got the same problem) 回答1: Did you forget to set the task definition <taskdef name="scp"

Using wildcards in filename in scp in python

无人久伴 提交于 2019-12-12 04:05:49
问题 I want to execute a simple scp command in a python script, copying files following a certain name pattern. I'm executing the following command: filename = '\*last_processed_date\*.txt' command = ''' scp test@100.41.14.27:/home/test/test2/test3/%s %s '''\ % (filename,self.unprocessed_file_dir) os.system(command) I understand that I have to escape the wildcard '*', which I'm doing..but still I get: scp: /home/test/test2/test3/*last_processed_date*.txt: No such file or directory I'm wondering

Ant, download fileset from remote machine

﹥>﹥吖頭↗ 提交于 2019-12-12 03:57:00
问题 As I've readen ant doesn't provide 'fileset' attribute when downloading files from remote machine via scp task. It works when sending files from local machine, but It doesn't work when starting in remote machine. That's from documentation. So in remote machine I have some folders and load of files in every directory. I want to download all folders and one specified file from every of them. Downloading all files and then deleting unneeded files won't be solution beacuse there are thousands of

Transfer file(scp) and run command from jumpserver to finalserver using python script on localhost

大兔子大兔子 提交于 2019-12-12 01:29:39
问题 A file needs to be uploaded to final-server and a command needs to be run using that file as input. Following will be the steps for whole action to be performed (but I am stuck at step 3): 1 - transfer file from localhost to jumpserver (using scp) 2 - ssh to jumpserver 3 - transfer file from jumpserver to finalserver (using scp) 4 - ssh to finalserver 5 - run the command on finalserver (with file as input) try: cmd_str = "scp " + file_path + " " + user + "@" + jumpbox + ":/tmp/" print "------

从说话人识别demo开始学习kaldi--(6)

心已入冬 提交于 2019-12-11 20:38:34
完整步骤在这里: https://github.com/kaldi-asr/kaldi/blob/master/egs/aishell/v1/run.sh 下面是从训练对角矩阵开始的 sid/train_diag_ubm.sh --cmd " $train_cmd " --num-threads 16 data/dev 1024 exp/diag_ubm_1024 现在我们使用dev的数据来训练一个对角ubm 除了必要的参数设置,data/dev文件夹下面一定要有的是feats.scp,vad.scp 最后生成的是一个exp/diag_ubm_1024/final.dubm 下面是过程中出现的: sid/train_diag_ubm.sh --cmd run.pl --num-threads 16 data/dev 1024 exp/diag_ubm_1024 sid/train_diag_ubm.sh: initializing model from E-M in memory, sid/train_diag_ubm.sh: starting from 512 Gaussians, reaching 1024 ; sid/train_diag_ubm.sh: for 20 iterations, using at most 500000 frames of data

Bash script to find specific files in a hierarchy of files

孤街醉人 提交于 2019-12-11 18:12:49
问题 I have a folder in which there are many many folder and in each of these I have lots and lots of files. I have no idea which folder each files might be located in. I will periodically receive a list of files I need to copy to a predefined destination. The script will run on a Unix machine. So, my little script should: read received list find all files in the list copy each file to a predefined destination via SCP step 1 and 3, I think I'll manage on my own, but how will I do step 2? I was

QProcess output not showing

南楼画角 提交于 2019-12-11 18:04:29
问题 I have some C++ code that uses Qt's QProcess to run an scp command in Linux, but I never get any output from the process: void CopyClass::CopyClass() { mpScpProcess = new QProcess(this); connect(mpScpProcess, SIGNAL(finished(int)), this, SLOT(onCopyFinished(int))); connect(mpScpProcess, SIGNAL(readyReadStandardOutput()), this, SLOT(onReadCopyOutput())); } void CopyClass::startScp() { mpScpProcess->setProcessChannelMode(QProcess::MergedChannels); mpScpProcess->start("scp 192.168.1.100:/file