zoukankan      html  css  js  c++  java
  • Linux scp 传文件

    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
    

    远程 -> 本地

    # 文件
    scp username@servername:/path/filename /localhost/filename
    # 目录
    scp -r username@servername:/path /localhost
    

    本地 -> 远程

    # 文件
    scp /localhost/filename username@servername:/path/filename
    # 目录
    scp -r /localhost username@servername:/path 
    
  • 相关阅读:
    mysql基本用法
    linux基本指令
    servlet的生命周期
    day 15 笔记
    day 14 作业
    考试二
    day 14
    day 12 zuoye
    day 13
    day 12
  • 原文地址:https://www.cnblogs.com/iFanLiwei/p/12864855.html
Copyright © 2011-2022 走看看