zoukankan      html  css  js  c++  java
  • putty下载linux文件到本地windows

    1. psftp -l root -pw password -P port host-ip
    2. -l 用户名  -pw 密码  
    3. psftp> help
      ! run a local command
      bye finish your SFTP session
      cd change your remote working directory
      chmod change file permissions and modes
      close finish your SFTP session but do not quit PSFTP
      del delete files on the remote server
      dir list remote files
      exit finish your SFTP session
      get download a file from the server to your local machine
      help give help
      lcd change local working directory
      lpwd print local working directory
      ls list remote files
      mget download multiple files at once
      mkdir create directories on the remote server
      mput upload multiple files at once
      mv move or rename file(s) on the remote server
      open connect to a host
      put upload a file from your local machine to the server
      pwd print your remote working directory
      quit finish your SFTP session
      reget continue downloading files
      ren move or rename file(s) on the remote server
      reput continue uploading files
      rm delete files on the remote server
      rmdir remove directories on the remote server

    将远程当前工作目录文件sourcefile.txt下载到本地当前工作目录中:
    1. psfp> get filename

    将本地当前工作目录文件sourcefile.txt上传到远程当前工作目录中:
    1. psftp> put  filename
  • 相关阅读:
    Linux 进程退出后自动启动
    Python UDP broadcast PermissionError: [Errno 13] Permission denied
    C# 获取MAC地址
    C# 多线程
    C# UdpClient 设置超时时间
    C# 控件聚焦
    C# 添加图片资源
    C# Listview 第一列不能居中
    Ubuntu 14.04 AM335x TI-RTOS 编译
    为AM335x移植Linux内核主线代码
  • 原文地址:https://www.cnblogs.com/lfzark/p/4528631.html
Copyright © 2011-2022 走看看