Upload and download files to the local machine in Xshell (the folder in the dbserver that has been logged on through ssh for multiple times in linux)

Source: Internet
Author: User
Upload and download files to the local machine in Xshell (the folder in the dbserver that has been logged on through ssh for multiple times in linux) 1. list all sh FILES to be copied-bash-4.1 $ ll/mysqllog/osw /*. sh-rwxr-xr-x1mysqlmysql409May1610: 00/mysqllog... upload and download files to the local machine in Xshell (the folder in the dbserver that has been logged on through ssh for multiple times in linux) 1. list all sh FILES to be copied-bash-4.1 $ ll/mysqllog/osw /*. sh-rwxr-xr-x 1 mysql 409 May 16/mysqllog/osw/topaix. sh-rwxr-xr-x 1 mysql 127 May 16/mysqllog/osw/tarupfiles. sh-rwxr-xr-x 1 mysql 556 May 10: 00/mysqllog/osw/stopOSW. sh-rwxr-xr-x 1 mysql 1609 May 16/mysqllog/osw/startOSW. sh-rwxr-xr-x 1 mysql 398 May 16/mysqllog/osw/oswsub. sh-rwxr-xr-x 1 mysql 330 May 16/mysqllog/osw/oswnet. sh-rwxr-xr-x 1 mysql 636 May 16/mysqllog/osw/oswlnxtop. sh-rwxr-xr-x 1 mysql 634 May 16/mysqllog/osw/oswlnxio. sh-rwxr-xr-x 1 mysql 1559 8 May 16/mysqllog/osw/OSWatcher. sh-rwxr-xr-x 1 mysql 5586 May 16/mysqllog/osw/OSWatcherFM. sh-rwxr -- r -- 1 mysql 567 May 16/mysqllog/osw/mysql_status.sh-rwxr -- r -- 1 mysql 617 May 16/mysqllog/osw/mysql. sh-rwxr -- r -- 1 mysql 587 May 16/mysqllog/osw/mysql_inno_status.sh 2 copy sh from the remote db server to the Directory of the novamysqladminprod account on the control machine: 2.1 enter the osw directory and copy the sh file cd/ho Me/fig eanprdnucmydbc027db01.eao.abn-iad.ea.com:/mysqllog/osw /*. sh. /cp */tmp/osw/2.2 exit control machine [novamysqladminprod @ mydbctl osw] $ exitlogout [chm @ mydbctl osw] $ exitlogout [chm @ linuxbh1-p osw] $ scp mydbctl.eao.abn-iad.ea.com: /tmp/osw/*/tmp/oswPassword: mysql_inno_status.sh 100% 587 0.6KB/s mysql. sh 100% 617 0.6KB/s mysql_status.sh 100% 567 0.6KB/s OSW AtcherFM. sh 100% 5586 5.5KB/s OSWatcher. sh 100% 15KB 15.2KB/s oswlnxio. sh 100% 634 0.6KB/s oswlnxtop. sh 100% 636 0.6KB/s oswnet. sh 100% 330 0.3KB/s oswsub. sh 100% 398 0.4KB/s startOSW. sh 100% 1609 1.6KB/s stopOSW. sh 100% 556 KB/s tarupfiles. sh 100% 127 0.1KB/s topaix. sh 100% 409 0.4KB/s 2.3 check sh files in linuxbh servers [chm @ linuxbh 1-p osw] $ pwd/tmp/osw [chm @ linuxbh1-p osw] $ lltotal 68-rwxr -- r -- 1 chm 587 Sep 2 08:06 mysql_inno_status.sh-rwxr -- r -- 1 chm 617 Sep 2 08:06 mysql. sh-rwxr -- r -- 1 chm 567 Sep 2 08:06 mysql_status.sh-rwxr-xr-x 1 chm 5586 Sep 2 08:06 OSWatcherFM. sh-rwxr-xr-x 1 chm 15598 Sep 2 08:06 OSWatcher. sh-rwxr-xr-x 1 chm 634 Sep 2 08:06 oswlnxio. sh-rwxr-xr-x 1 chm 636 Sep 2 08:06 oswln Xtop. sh-rwxr-xr-x 1 chm 330 Sep 2 08:06 oswnet. sh-rwxr-xr-x 1 chm 398 Sep 2 08:06 oswsub. sh-rwxr-xr-x 1 chm 1609 Sep 2 08:06 startOSW. sh-rwxr-xr-x 1 chm 556 Sep 2 08:06 stopOSW. sh-rwxr-xr-x 1 chm 127 Sep 2 08:06 tarupfiles. sh-rwxr-xr-x 1 chm 409 Sep 2 08:06 topaix. sh [chm @ linuxbh1-p osw] $ it is OK, all the sh files are here. 3 copy the sh files to local pc D: \ osw \ google get the following help Help information: XShell file upload and download command sz, rzsz test. log download file name is test. log to the local rz to upload files to the remote server rz-y to overwrite existing files. here I need to use the sz command, as shown in: go to the local check sh file and download it.
Related Article

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.