如何下载从EC2实例文件到本地计算机 [英] How to download a file from EC2 instance to Local Computer

查看:620
本文介绍了如何下载从EC2实例文件到本地计算机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有ec2.it的实例有一些files.i试图从EC2实例下载我的文件,我的本地的Ubuntu 13.10.i运行此命令

i have an instance of ec2.it have some files.i tried to download my file from ec2 instance to my local Ubuntu 13.10.i run this command

scp -i /home/ritesh/.ssh/id_rsa2 apps@XXX.20.24.XXX:/home/apps/dev/comp-eng/arena-client/build/arena-client-7.1.0.zip

和输出我收到

用法:SCP [-12346BCpqrv] [-c密码] [-F ssh_config中] [-i identity_file]            [-l限制] [-o ssh_option] [-P端口] [-S程序]            [用户@]主机1:]文件1 ... [用户@]主机2:]文件2

usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2

我使用正确的格式,我think.why我面对这个错误,而不是下载文件??

i am using correct format i think.why i am facing this error instead of downloading file ??

推荐答案

您需要指定下载位置。如果当前目录下,你可以添加一个

You need to specify your download location. If its the current directory, you can just add a ..

SCP -i /home/ritesh/.ssh/id_rsa2 apps@XXX.20.24.XXX:/家庭/应用程序的/ dev / COMP-ENG /竞技场客户端/编译/舞台上,客户端 - 7.1.0.zip。

这篇关于如何下载从EC2实例文件到本地计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆