Jacky's blog
首页
  • 学习笔记

    • web
    • android
    • iOS
    • vue
  • 分类
  • 标签
  • 归档
收藏
  • tool
  • algo
  • python
  • java
  • server
  • growth
  • frida
  • blog
  • SP
  • more
GitHub (opens new window)

Jack Yang

编程; 随笔
首页
  • 学习笔记

    • web
    • android
    • iOS
    • vue
  • 分类
  • 标签
  • 归档
收藏
  • tool
  • algo
  • python
  • java
  • server
  • growth
  • frida
  • blog
  • SP
  • more
GitHub (opens new window)
  • shell

    • shell 入门指南
    • linux 入门指南
    • Shell 常用命令速查手册
    • Shell 代码片段集合
    • awk
    • fd
    • ftp
    • sftp
      • case
    • ifconfig
    • ssh
    • sed
    • xargs
  • tool

  • 网络

  • algo

  • compute_base

  • blog

  • growth

  • java

  • C&C++

  • ai

  • secure

  • cms

  • english

  • 生活

  • 金融学

  • more

  • other
  • shell
Jacky
2024-10-15
目录

sftp

关联文档 ftp

SFTP 是基于 SSH 的文件传输协议. 你可以使用 sftp 命令打开一个交互式会话来上传或下载文件:

  1. 打开 SFTP 会话: sftp username@remote_host
  2. 交互操作
  • put /path/to/local/file: 将本地文件上传到远程服务器
  • get /path/to/remote/file: 将远程文件下载到本地
  • ls: 查看远程目录内容
  • lcd /path/to/local/directory: 更改本地目录
  • cd /path/to/remote/directory: 更改远程目录
  • exit: 退出 SFTP 会话

# case

sftp username@remote_host
sftp> put /home/user/file.txt
sftp> get /home/username/file.txt
1
2
3
上次更新: 2024/12/01, 17:07:39
ftp
ifconfig

← ftp ifconfig→

最近更新
01
npx 使用指南
10-12
02
cursor
09-28
03
inspect
07-20
更多文章>
Theme by Vdoing | Copyright © 2019-2025 Jacky | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式