【问题标题】:How do I copy a file to my server using scp [closed]如何使用 scp 将文件复制到我的服务器 [关闭]
【发布时间】:2015-11-12 03:13:30
【问题描述】:

我想将文件复制到我的服务器。但是,为 ssh 开放的唯一端口是 2232。我现在正在做以下事情,我做错了什么。

scp -P 2232 -l file.1 root@xxx.xxx.xxx.xxx:/~

【问题讨论】:

  • 在错误的网站上,一方面 :) 这个问题是针对SuperUser。哦,用你的scp-l 需要一个数字,而 file.1 不是。
  • 而且,您不需要特别指定端口号。

标签: linux server


【解决方案1】:

scp [file_directory][file_name] @[server_ip]:[directory where you want to put the file]。例如:

scp example.txt @192.168.3.1:/home/ 。然后按照系统给出的指导进行操作。我希望这可以帮助你。

【讨论】:

    猜你喜欢
    • 2012-02-17
    • 2013-05-14
    • 2015-04-22
    • 1970-01-01
    • 2010-09-09
    • 2013-08-13
    • 2016-04-18
    • 2010-11-03
    • 2019-11-07
    相关资源
    最近更新 更多