- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试将文件上传到我的新 ec2 vps,但没有任何运气。
我可以通过 ssh 连接没有任何问题。
当我尝试上传我的外壳时说:
scp -v -i ~/.ssh/maurospage.pem wp-config.php ubuntu@ec2-54-247-43-158.eu-west-1.compute.amazonaws.com:/var/www/blog
Executing: program /usr/bin/ssh host ec2-54-247-43-158.eu-west-1.compute.amazonaws.com, user ubuntu, command scp -v -t -- /var/www/blog
OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /Users/mauromarano/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Connecting to ec2-54-247-43-158.eu-west-1.compute.amazonaws.com [54.247.43.158] port 22.
debug1: Connection established.
debug1: identity file /Users/mauromarano/.ssh/maurospage.pem type -1
debug1: identity file /Users/mauromarano/.ssh/maurospage.pem-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1
debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 1c:58:69:51:4a:5e:60:4a:a1:39:c8:03:55:cb:f9:10
debug1: Host 'ec2-54-247-43-158.eu-west-1.compute.amazonaws.com' is known and matches the RSA host key.
debug1: Found key in /Users/mauromarano/.ssh/known_hosts:7
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/mauromarano/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: Trying private key: /Users/mauromarano/.ssh/maurospage.pem
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
Authenticated to ec2-54-247-43-158.eu-west-1.compute.amazonaws.com ([54.247.43.158]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = it_IT.UTF-8
debug1: Sending env LC_CTYPE = it_IT.UTF-8
debug1: Sending command: scp -v -t -- /var/www/blog
Sending file modes: C0777 3504 wp-config.php
Sink: C0777 3504 wp-config.php
scp: /var/www/blog/wp-config.php: Permission denied
MacBook-Pro-di-Mauro: ~/Desktop
→ debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 2672, received 2304 bytes, in 0.7 seconds
Bytes per second: sent 3996.1, received 3445.7
debug1: Exit status 1
ubuntu@ip-10-227-45-167:/var/www/blog$ ls -l
total 192
-rwxrwxrwx 1 ubuntu root 395 Jan 8 2012 index.php
-rwxrwxrwx 1 ubuntu root 408 Dec 14 09:21 LEGGIMI.txt
-rwxrwxrwx 1 ubuntu root 19929 May 6 2012 license.txt
-rwxrwxrwx 1 ubuntu root 24880 Dec 14 09:21 licenza.html
-rwxrwxrwx 1 ubuntu root 8946 Dec 14 09:21 readme.html
-rwxrwxrwx 1 ubuntu root 4663 Nov 17 15:11 wp-activate.php
drwxrwxrwx 9 ubuntu root 4096 Dec 14 09:21 wp-admin
-rwxrwxrwx 1 ubuntu root 271 Jan 8 2012 wp-blog-header.php
-rwxrwxrwx 1 ubuntu root 3522 Apr 10 2012 wp-comments-post.php
-rwxrwxrwx 1 ubuntu root 3737 Dec 14 09:21 wp-config-sample.php
drwxrwxrwx 5 ubuntu root 4096 Dec 14 09:21 wp-content
-rwxrwxrwx 1 ubuntu root 2718 Sep 23 16:57 wp-cron.php
drwxrwxrwx 9 ubuntu root 4096 Dec 14 09:21 wp-includes
-rwxrwxrwx 1 ubuntu root 1997 Oct 23 2010 wp-links-opml.php
-rwxrwxrwx 1 ubuntu root 2408 Oct 26 19:40 wp-load.php
-rwxrwxrwx 1 ubuntu root 29310 Nov 30 13:40 wp-login.php
-rwxrwxrwx 1 ubuntu root 7723 Sep 25 05:26 wp-mail.php
-rwxrwxrwx 1 ubuntu root 9899 Nov 22 09:52 wp-settings.php
-rwxrwxrwx 1 ubuntu root 18219 Sep 11 12:27 wp-signup.php
-rwxrwxrwx 1 ubuntu root 3700 Jan 8 2012 wp-trackback.php
-rwxrwxrwx 1 ubuntu root 2719 Sep 11 20:11 xmlrpc.php
chmod 777 myfile
在我的电脑上,我做了
chmod -R 777 *
在我的 ec2 实例上的 blog 文件夹中。没有改变。
最佳答案
父文件夹缺少正确的权限。 Scp 无法在当前文件夹中创建新文件。您可能希望修复您的权限,以便不对所有文件使用 777。
关于ubuntu - 通过 scp 上传文件时的 Ec2 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14665171/
我想知道使用 SCP 传输文件时使用的默认模式是什么(ASCII 或二进制,如 FTP)。 SCP 中是否有任何文件模式概念?它是如何工作的 ? 最佳答案 FTP中的文件传输方式用于解决不同操作系统行
我想知道是否有一种方法可以让我通过remote1主机直接从本地计算机对remote2主机的文件进行SCP。 网络仅允许从远程 1 主机连接到远程 2 主机。另外,remote1 主机和remote2
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 已关闭 6 年前。 此问题是由拼写错误或无法再重现的问题引起的。虽然类似的问题可能是 on-topic在这里
我正在寻找一个多平台解决方案,可以让我检查 scp命令可用。 问题是 scp 没有 --version命令行,当不带参数调用时,它将返回退出代码 1 (错误)。 更新:如果不清楚,多平台我的意思是一个
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题? Update the question所以它是on-topic对于堆栈溢出。 10年前关闭。 Improve this qu
我在 Windows A 上运行 freeSSHD,需要通过 scp 传输文件。运行 freesshd 的 Windows 可以通过 ssh 客户端连接。但是 Windows 上的 WinSCP 和
我正在我的 Windows 机器上使用腻子通过 ssh 访问 ubuntu 服务器,并尝试将单个文件下载到我的本地 Windows 机器 我的 Windows 用户名是 Mark,每个 cmd 的主机
所以我发现我可以通过标准输入对 scp 执行以下操作: 目录创建 scp -tr . stdin -> D0755 0 stdin -> \x00 文件写入 scp -tr . stdin -> C
请为我在工作中面临的问题提供您的专家选项。 Ant SCP 任务不起作用 - 因为我可以使用 cygwin 进行 scp。 本地环境:windows 7 64 位、Jdk 1.6.0.24、Ant-1
我需要重新安装我们的一台服务器,作为预防措施,我想移动 /home、/etc、/opt和 /Services 到备份服务器。 但是,我有一个问题:由于存在大量符号链接(symbolic link),因
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a software
我有一个小型应用程序,它试图执行十几个并行“scp”运行,从远程系统中提取文件。通常,它运行良好。有时,一两个 scp 悄悄地死掉了。(如果从 Linux 中拉出,则为“安静”。如果从 HP-UX 中
我有一个脚本可以将文件从一台服务器传输到另一台服务器,但它给出了一个错误: Net::SCP::Error (SCP did not finish successfully ()): 有谁能够帮助我?
下面是我的 shell 脚本片段,我在其中执行 scp 命令将文件从 machineB 复制到 machineA。 for element in ${x[$key]}; do # no quote
我有一个适用于不同客户端的脚本,需要将 SCP 文件发送到不同的主机。根据客户端和服务器的组合,我可能需要使用密码身份验证或公钥身份验证。我真的无法提前知道使用哪一个。 我使用的 SCP 有 2 个
我正在尝试使用 libssh2 scp 从实例中检索文件。 为了确保我的用户名、密码和 key 正确无误,我做了: sudo scp -v -P #port -i /home/username/.ss
我正在尝试使用 scp 在两台 Mac (OS 10.6.8) 之间传输文件。但它失败了,因为我的目录/文件名中有空格。我无法更改目录/文件名。 在我的 Mac 的终端中工作时,我经常使用\符号来表示
我需要一些帮助来在 xml 中构建这一行。对于谷歌内容 API 我想要得到的结果是 25 目前我的代码输出这一行 25这是不正确的。 这是我的代码 b = Nokogiri::XML::Builder
我正在使用命令: docker-machine scp 管理器:/home/docker/foo.txt 。 但是,Windows PowerShell 返回“您必须在本地拥有 scp 二进制文件的副
我们知道 String将被存储在SCP(字符串常量池)区域: 1.以同样的方式String[]也存储在SCP中?我的意思是每个数组包含一个 String ,那么这又会被存储在 SCP 中吗? 2.那么
我是一名优秀的程序员,十分优秀!