Download and transfer files using SFTP upload under XSHELL5

Source: Internet
Author: User
Tags clear screen soap file transfer protocol

SFTP is the abbreviation for Secure File Transfer protocol, security File Transfer Protocol. You can provide a secure encryption method for transferring files. SFTP has almost the same syntax and functionality as FTP. SFTP is part of SSH and is a secure way to transfer files to the Blogger server. In fact, in the SSH package, a secure file transfer subsystem called SFTP (secure files Transfer Protocol) has been included, and SFTP itself does not have a separate daemon. It must use the sshd daemon (the port number by default is 22) to complete the corresponding connection operation, so in a sense, sftp is not like a server program, but more like a client program. SFTP is also used to transmit authentication information and transmitted data using encryption, so it is very safe to use SFTP. However, because this transmission uses the encryption/decryption technology, the transfer efficiency is much lower than the normal FTP, and if you have higher network security requirements, you can use SFTP instead of FTP. One, the connection method commonly used in two ways, a direct use of SFTP connection remote server IP another is to log on to the remote server first, on the SFTP function 1, sftp [RemoteHost IP] via SFTP connection [host], the port is the default of 22, The user is currently logged on as a Linux user. Xshell 5 (Build 0806) Copyright (c) 2002-2015 Netsarang Computer, Inc. All rights reserved. Type ' help ' to learn. Xshell prompt. [c:\~]$ sftp 192.168.56.101Connecting to 192.168.56.101:22...connection established. To escape to local shell, press ' ctrl+alt+] '. Your current local directory Isc:\users\fieldyang\documents\netsarang\xshell\sessionstype "Help" to browse available COMMNANDS.SFTP:/ROOT>2, Sftp-oport=[port] [remotehost IP] Connect to the remote server via SFTP, specify the ports [port], and the user is currently logged on as Linux user. 3. sftp [User]@[remotehost IP] connects to the remote server via SFTP, the default port is 22, and the user is specified. Xshell 5 (Build 0806) Copyright (c) 2002-2015 Netsarang Computer, Inc. All rights reserved. Type ' help ' to learn. Xshell prompt. [c:\~]$ sftp [email protected]connecting to 192.168.56.101:22...connection established. To escape to local shell, press ' ctrl+alt+] '. Your current local directory Isc:\users\fieldyang\documents\netsarang\xshell\sessionstype "Help" to browse available Commnands.sftp:/home/fieldyang>4, Sftp-oport=[port] [user]@[remotehost IP] via sftp connection [RemoteHost IP], the port is [ports], the user is [user].     5, through the XSHELL5 and Linux to establish a connection, in the Graphical User panel window, transfer new file, open Xftp character interface, directly close to open an SFTP window ii. usage 1, basic usage sftp:/root> Helpbye       Finish your SFTP session exiting SFTPCD Change your remote working directory changing the working directory of the remoting server clear clear screen Clear screen exit finish your SFTP Sessionexplore explore your local directory import native directories get download a file from T    He server to your local machine downloads files from a remote server to native help give help   Find help LCD change and/or print local working directory switch your current working directory LLS list contents of a home directory Lists the contents of the local current directory lpwd print your local working directory prints the current working directory LS list contents of a remote directory column Out of the remote server directory content mkdir create a directory on the remote server creates a directory of MV move or rename a file on the remotes  Server to move or rename a remote server file put upload a file from your local computer to the server will upload the native file to the remote server PWD print  Your working directory print remote server working path quit finish your SFTP session exit rename move or rename a file on       The remote server removes or renames a file from the file rm delete a files rmdir remove a directory on the server             Delete a directory on the remote server delete a directory 2, commonly used for upload download 1), get from the remote server downloaded a file to be stored locally, as follows: first through the LCD switch to the local directory, and then through the Get file>> LCD d:\ #表示切换到本地的d盘下 >> get./test.sql #这样就将当前文件下载本地的d盘下2), put is to upload the local file to the remote server, as follows:>> put #在windows下弹 Select the File window 3), LCD first through the LCD switch to theUnder that directory >> LCD c \ #表示切换到本地的c盘下4), lls# display all files in the current directory 5), pwd# display the current directory three, each usage instance detailed instance 1, downloads the file from the server to the native Xshell 5 (Build 0 806) Copyright (c) 2002-2015 Netsarang Computer, Inc. All rights reserved. Type ' help ' to learn. Xshell prompt. [c:\~] $Connecting to 192.168.56.101:22...connection established. To escape to local shell, press ' ctrl+alt+] '. Your current local directory Isc:\users\fieldyang\documents\netsarang\xshell\sessionstype "Help" to browse available        commnands.sftp:/root> cd/mnt/share #远程路径切换为/mnt/share sftp:/mnt/share> ls–lt drwxrwxrwx 1 Users 4096 June 13:39. drwxr-xr-x 7 root root 4096 June 15 14:06. -RWXRWXRWX 1 Users 220151 June 14:26 goutputstream-zhj8iy-rwxrwxrwx 1 users 19362 Ju n 12:27 0.jpg-rwxrwxrwx 1 users 16157 June 13:39 Auth Server and SOAP proxy.docx-rwxrwxrwx 1 100  0 users 63952 June 12:29 bamquickinstall.pdf-rwxrwxrwx 1 users      7277 June 13:33 dnsmmms.txt-rwxrwxrwx 1 users 7277 may 1000 10:43 dnss.txt-rwxrwxrwx 1 Users 111395 June 15:46 libpcap-0.9.4-15.el5.x86_64.rpm-rwxrwxrwx 1 users 363677 June 14:59 pp P-2.4.4-14.1.RHEL5.X86_64.RPM-RWXRWXRWX 1 Users 48430 June 14:57 ppp-devel-2.4.4-14.1.rhel5.x86_64.rpm       -RWXRWXRWX 1 Users 86211 June 15:38 pptpd-1.4.0-1.rhel4.x86_64.rpm-rwxrwxrwx 1 users 86509 June 14:46 pptpd-1.4.0-1.rhel5.x86_64.rpm-rwxrwxrwx 1 users 220151 June 13:22 Screenshot.png-r WXRWXRWX 1 Users 21789 June 13:39 traffic Usage System alarm Handling-gateway, Radiusgwproxy, Radius Proxy server.docx sftp:/mnt/share> LCD d:\Field\test_sftp #切换到本地的d盘下Field文件夹的test_sftp文件夹Local directory is now D:\ Field\test_sftp sftp:/mnt/share> lpwdlocal directory is d:\field\test_sftp# print local folder path sftp:/mnt/share> lls06/16/ 2016 05:44¤w 06/16/2016 05:44¤w   #查看本地文件夹d: \field\test_sftp content sftp:/mnt/share>get./0.jpg./dnsmmms.txt./pptpd-1.4.0-1.rhel5.x86_64.rpm# Download Remote server /mnt/share 0.jpg, DNSmmmS.txt, #pptpd -1.4.0-1.rhel5.x86_64.rpm to local folder D:\Field\test_sftp fetching/mnt/share/./ pptpd-1.4.0-1.rhel5.x86_64.rpm to pptpd-1.4.0-1.rhel5.x86_64.rpmsftp:received 84.4 KB in 0.64 secondsfetching/mnt/  Share/./dnsmmms.txt to DNSmmmS.txtsftp:received 7.10 KB in 0.02 secondsfetching/mnt/share/./0.jpg to 0.jpgsftp:received 18.9 KB in 0.03 seconds sftp:/mnt/share> lls–lt# command line to see if the download was successful 06/16/2016 05:47¤w 06/16/2016 05:47¤w 06/16/2016 05:47  ¤w 19362 0.jpg06/16/2016 05:47¤w 7277 dnsmmms.txt06/16/2016 05:47¤w 86509 pptpd-1.4.0-1.rhel5.x86_64.rpmxshell5 use sftp upload download transfer file instance 2, upload local file to remote server sftp:/mnt/share> LCD d:\field\sninf# Switch local path to d:\Field\SNINFLocal directory is now d:\field\sninfsftp:/mnt/share> lpwd# print the local current path to the native directory is D:\Field \sninfsftp:/mnt/share> lls-lt02/19/2016 07:50¤w 02/19/2016 07:50¤w 12/11/2015 08:27¤w 16157 Auth Server and SOAP proxy.docx12/11/2015 08:27¤w 46419 1 Check plan--jacky.docx12/11/2015 08:27¤w 562801 cimdb? V david.docx12/11/2015 08:27¤w 12031 Disk full? V for all systems.docx12/11/2015 08:27¤w 126440 emmsc--fox.docx12/11/2015 08:27¤w 115928 ENU M? vjacky.docx12/11/2015 08:27¤w 327650 f-secure.docx12/11/2015 08:27¤w 107606 gds--fox.docx12/ 11/2015 08:27¤w 117762 Gimei? xfox.docx12/11/2015 08:27¤w 310862 GUP cgup? πray.docx12/11/2015 08:27¤w 650939 IP Call--s haron.docx12/11/2015 08:27¤w 779957 Mex health check--niker.docx12/11/2015 08:27¤w 124195 Ne Tscout (DPI)? xfox.docx12/11/2015 08:27¤w 198426 poc--jacky.docx12/11/2015 08:27¤w 326368 Radius Proxy-ni ker.docx12/11/2015 08:27¤w 190044 SMTP Health Check--niker.docx12/11/2015 08:27¤w 45643 Stretti DFS? xsharon.docx12/11/2015 08:27¤w 233654 Stretti DISC? vjacky.docx12/11/2015 08:27¤w 449498 Traffic Router health Check? xdavid.docx12/11/2015 08:27¤w 21789 Traffic Usage System alarm Handling-gateway, Radiusgwproxy, RADIUSPR Oxy server.docx12/11/2015 08:27¤w 734859 Video transcoder? xdavid.docx12/11/2015 08:27¤w 14815 Virtual browser.docx12/11/2015 08:27¤w 22554 Zmmsc.doc x12/11/2015 08:27¤w 219776 zproxy? πfox.docx12/11/2015 08:27¤w 221199 ZWAPGW NZWAPGW? ΠFox. docx sftp:/mnt/share> putuploading Traffic Usage System alarm Handling-gateway, Radiusgwproxy, Radiusproxy Server.doc X to remote:/mnt/share/traffic Usage System alarm handling-gateway, Radiusgwproxy, Radiusproxy Server.docxsftp:sent 21. 2 KB in 0.01 seconds# Select File Upload in the popup Windows box Note that the upload path is the same as the current path sftp:/mnt/share> putuploading Virtual browser.docxTo remote:/mnt/share/virtual Browser.docxsftp:sent 14.4 KB in 0.02 secondssftp:/mnt/share> putuploading Check plan--j Acky.docx to Remote:/mnt/share/check plan--jacky.docxsftp:sent 453 KB in 0.05 secondssftp:/mnt/share> putUploading ZM     Msc.docx to Remote:/mnt/share/zmmsc.docxsftp:sent 22.0 KB in 0.00 seconds sftp:/mnt/share> ls-ltdrwxrwxrwx 1 1000 Users 4096 June 13:54 drwxr-xr-x 7 root root 4096 June 15 14:06. -RWXRWXRWX 1 Users 220151 June 14:26 goutputstream-zhj8iy-rwxrwxrwx 1 users 19362 Ju n 12:27 0.jpg-rwxrwxrwx 1 users 16157 June 13:39 Auth Server and SOAP proxy.docx-rwxrwxrwx 1 100 0 users 63952 June 12:29 bamquickinstall.pdf-rwxrwxrwx 1 users 464191 June 13:53 Check Plan --JACKY.DOCX-RWXRWXRWX 1 Users 7277 June 13:33 dnsmmms.txt-rwxrwxrwx 1 users 7277   May 10:43 dnss.txt-rwxrwxrwx 1 users   111395 June 15:46 libpcap-0.9.4-15.el5.x86_64.rpm-rwxrwxrwx 1 users 363677 June 14:59 ppp-2.4.4-14     .1.RHEL5.X86_64.RPM-RWXRWXRWX 1 Users 48430 June 14:57 ppp-devel-2.4.4-14.1.rhel5.x86_64.rpm-rwxrwxrwx  1 Users 86211 June 15:38 pptpd-1.4.0-1.rhel4.x86_64.rpm-rwxrwxrwx 1 users 86509 June    14:46 pptpd-1.4.0-1.rhel5.x86_64.rpm-rwxrwxrwx 1 Users 220151 June 13:22 screenshot.png-rwxrwxrwx 1 users 21789 June 13:52 traffic Usage System alarm Handling-gateway, Radiusgwproxy, Radiusproxy Serv ER.DOCX-RWXRWXRWX 1 Users 14815 June 13:53 Virtual browser.docx-rwxrwxrwx 1 Users 22 554 June 13:54 zmmsc.docxsftp:/mnt/share> Instance 3, creating a delete directory on a remote server sftp:/mnt/share> mkdir/mnt/share/test# creating a directory on a remote server Mnt/share/testsftp:/mnt/share> cd/mnt/share/testsftp:/mnt/share/test> pwd# See if a successful remote directory is/mnt/is created Share/testsftp:/mnt/share/test> CD/mnt/share/sftp:/mnt/share> Rmdir/testcannot Remove/test:no such a directorysftp:/mnt/share> rmdir/mnt/share/t est# Delete the directory you just created/mnt/share/testsftp:/mnt/share> cd/mnt/share/testcannot change to/mnt/share/test:no such a directory# Confirm whether to delete successful instance 4, delete the file on the remote server sftp:/mnt/share> rm./zmmsc# Delete the file on the remote server/mnt/share zmmsc.docx,./represents the current directory cannot delete/mnt/ Share/./zmmsc:no such a filesftp:/mnt/share> rm./zmmsc.docxdeleted/mnt/share/./zmmsc.docx sftp:/mnt/share> RM. /traffic Usage System Alarm handling-gateway, Radiusgwproxy, radiusproxy Server.docxusage:rm file sftp:/mnt/share> r  M./dnss.txtdeleted/mnt/share/./dnss.txt sftp:/mnt/share> ls# Check for successful deletion of DRWXRWXRWX 1 users 4096 June 16 14:25. drwxr-xr-x 7 root root 4096 June 15 14:06. -RWXRWXRWX 1 Users 220151 June 14:26 goutputstream-zhj8iy-rwxrwxrwx 1 users 19362 Ju n 12:27 0.jpg-rwxrwxrwx 1 users 16157 June 13:39 Auth Server and SOAP PROXY.DOCX-RWXRWXRWX 1 Users 63952 June 12:29 bamquickinstall.pdf-rwxrwxrwx 1 users 464 191 June 13:53 Check plan--jacky.docx-rwxrwxrwx 1 Users 7277 June 1 13:33 dnsmmms.txt-rwxrwxrwx 111395 June 15:46 libpcap-0.9.4-15.el5.x86_64.rpm-rwxrwxrwx 1 users 363677 June 15 1 4:59 ppp-2.4.4-14.1.rhel5.x86_64.rpm-rwxrwxrwx 1 Users 48430 June 14:57 ppp-devel-2.4.4-14.1.rhel5.x86 _64.RPM-RWXRWXRWX 1 Users 86211 June 15:38 pptpd-1.4.0-1.rhel4.x86_64.rpm-rwxrwxrwx 1 user S 86509 June 14:46 pptpd-1.4.0-1.rhel5.x86_64.rpm-rwxrwxrwx 1 users 220151 June 13:22 Screensho  T.PNG-RWXRWXRWX 1 Users 21789 June 13:52 traffic Usage System alarm Handling-gateway, Radiusgwproxy,  Radiusproxy server.docx-rwxrwxrwx 1 Users 14815 June 13:53 Virtual browser.docxsftp:/mnt/share>

  

Download and transfer files using SFTP upload under XSHELL5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.