scp

SCP Permission denied (publickey). on EC2 only when using -r flag on directories

橙三吉。 提交于 2019-12-03 04:30:43
问题 scp -r /Applications/XAMPP/htdocs/keypairfile.pem uploads ec2-user@publicdns:/var/www/html where uploads is a directory returns Permission denied (publickey). However scp -i /Applications/XAMPP/htdocs/keypairfile.pem footer.php ec2-user@publicdns:/var/www/html works (notice the flag change). uploads is an empty folder These are the file permissions for the uploads directory drwxrwxrwx 3 geoffreysangston admin 102 Nov 15 01:40 uploads These are the file permissions for /var/www/html drwxr-x---

scp files from local to remote machine error: no such file or directory

坚强是说给别人听的谎言 提交于 2019-12-03 04:14:30
问题 I want to be able to transfer a directory and all its files from my local machine to my remote one. I dont use SCP much so I am a bit confused. I am connected to my remote machine via ssh and I typed in the command scp name127.0.0.1:local/machine/path/to/directory filename the local/machine/path/to/directory is the value i got from using pwd in the desired directory on my local host. I am currently getting the error No such file or directory 回答1: Looks like you are trying to copy to a local

Kaldi解码

蓝咒 提交于 2019-12-03 04:11:21
online2-wav-nnet3-latgen-faster 在线解码,文件输入输出 decode.sh运行程序 ./online2-wav-nnet3-latgen-faster --do-endpointing=false --frames-per-chunk=20 --extra-left-context-initial=0 --online=true --config=exp/chain/tdnn7q_sp_online/conf/online.conf --min-active=200 --max-active=7000 --beam=15.0 --lattice-beam=6.0 --acoustic-scale=1.0 --word-symbol-table=exp/chain/tdnn7q_sp/graph/words.txt exp/chain/tdnn7q_sp_online/final.mdl exp/chain/tdnn7q_sp/graph/HCLG.fst ark:data/call_center_26s_hires/split1/1/spk2utt 'ark,s,cs:wav-copy scp,p:data/call_center_26s_hires/split1/1/wav.scp ark:- |' 'ark:|lattice-scale -

Scp command syntax for copying a folder from local machine to a remote server [closed]

≯℡__Kan透↙ 提交于 2019-12-03 04:07:02
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . I am using putty for copying files from local machine to remote server.My folder is in C:/site can any one give syntax for copying folder from C:/site to remote server using scp 回答1: scp -r C:/site user@server_ip:path path is the place, where site will be copied into the remote server EDIT : As I said in my

recursively use scp but excluding some folders

柔情痞子 提交于 2019-12-03 02:59:22
问题 Assume there are some folders with these structures /bench1/1cpu/p_0/image/ /bench1/1cpu/p_0/fl_1/ /bench1/1cpu/p_0/fl_1/ /bench1/1cpu/p_0/fl_1/ /bench1/1cpu/p_0/fl_1/ /bench1/1cpu/p_1/image/ /bench1/1cpu/p_1/fl_1/ /bench1/1cpu/p_1/fl_1/ /bench1/1cpu/p_1/fl_1/ /bench1/1cpu/p_1/fl_1/ /bench1/2cpu/p_0/image/ /bench1/2cpu/p_0/fl_1/ /bench1/2cpu/p_0/fl_1/ /bench1/2cpu/p_0/fl_1/ /bench1/2cpu/p_0/fl_1/ /bench1/2cpu/p_1/image/ /bench1/2cpu/p_1/fl_1/ /bench1/2cpu/p_1/fl_1/ /bench1/2cpu/p_1/fl_1/

Copying files from server to local computer using ssh [closed]

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am having trouble copying files from a remote server using ssh. Using putty I log in to the server using ssh. Once I find the file I would like to copy over to my computer, I use the command: scp username@host.com:/dir/of/file.txt \local\dir\ It looks like it is successful, but only ends up creating a new folder labeled 'localdir' in the remote directory /dir/of/. Any help is much appreciated thank you. 回答1: It depends on what your local OS is. If your local OS is Unix-like, then try: scp username@remoteHost:/remote/dir/file.txt /local/dir

scp via java

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: What is the best method of performing an scp transfer via the Java programming language? It seems I may be able to perform this via JSSE, JSch or the bouncy castle java libraries. None of these solutions seem to have an easy answer. 回答1: I ended up using Jsch - it was pretty straightforward, and seemed to scale up pretty well (I was grabbing a few thousand files every few minutes). 回答2: plug: sshj is the only sane choice! See these examples to get started: download , upload . 回答3: Take a look here That is the source code for Ants' SCP task.

How to copy file from a Vagrant machine to local host

烂漫一生 提交于 2019-12-03 02:41:09
问题 I want to copy a local file from a Vagrant machine to my local host, but I am getting an error message: ssh: connect to host 127.0.0.1 port 22: Connection refused [user@localhost ceil]$ scp -p 2222 vagrant@127.0.0.1:/home/vagrant/devstack/local.conf . cp: cannot stat ‘2222’: No such file or directory ssh: connect to host 127.0.0.1 port 22: Connection refused I also tried using using localhost but still got the same error. 回答1: You should read the manual page for scp . The correct syntax is:

SCP doesn't work when echo in .bashrc?

匿名 (未验证) 提交于 2019-12-03 02:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have two users in Fedora: Wani root (quite obvious!) My contents of .bashrc of user Wani are: # .bashrc echo "Hello" # Source global definitions if [ - f / etc / bashrc ]; then . / etc / bashrc fi # User specific aliases and functions Now after logging into root, I type the following commands: [ root@Dell Wani ]# touch try . txt [ root@Dell Wani ]# service sshd start [ root@Dell Wani ]# scp try . txt Wani@localhost :~/ Wani@localhost 's password: Hello [root@Dell Wani]# Now I log into Wani, and type: [ Wani@Dell ~] $ cat try .

Maven Wagon SCP is not able to establish a connection

匿名 (未验证) 提交于 2019-12-03 02:01:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to copy resources to another location. I am using maven wagon-ssh plugin to do this. It works fine locally, I am having issues when using Hudson/Jenkins. My settings.xml file looks like this: iq no user pass I tried this answer to skipping checking as I was getting: Are you sure you want to continue connecting? (yes/no): The authenticity of host 'address' can't be established. RSA key fingerprint is 10:.......:bb. but now I am getting: Could not apply configuration for iq to wagon org.apache.maven.wagon.providers.ssh.jsch