zoukankan      html  css  js  c++  java
  • Linux 互传文件或文件夹

    SCP命令

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

     从服务器A传文件到服务器B

    scp {本地文件路径} {服务器用户名}@{服务器ip}:{保存服务器路径}
    

      

    报错

    1:连接拒绝

    ssh: connect to host 192.168.136.134 port 22: Connection refused
    lost connection
    

      服务器B没有启用ssh

    安装 ssh服务端

    sudo apt install openssh-server

    查看状态

    sudo service ssh status
    

      

  • 相关阅读:
    JMS API学习总结(一)
    java读取properties配置文件
    如何创建并运行java线程
    JS
    JS
    JS
    JS
    IE
    JS
    JS
  • 原文地址:https://www.cnblogs.com/8000cabbage/p/12334287.html
Copyright © 2011-2022 走看看