Simple use of psftp

Source: Internet
Author: User

Psftp is part of putty and can be used independently, but it is recommended that you go to http://www.chiark.greenend.org.uk /~ Download the complete putty installation package from sgtatham/Putty/download.html. After the installation, you have an almost complete remote access solution.

Psftp is a client program that supports SFTP protocol. SFTP is often used for projects that upload files or maintain SourceForge in the Unix experience center. Currently, many clients that support SFTP, such as filezilla and coreftp, have graphic interfaces in windows. Psftp has no graphical interface, and all operations must be done by using commands. Sometimes this seemingly troublesome method is more efficient.

Open psftp, if you want to access the fedora server in the Unix experience center, enter the command open fedora.unix-center.net, and then you will be prompted to enter the user name and password, if correct, then you are successfully connected to the remote host.

The PWD command displays the current directory on the remote host. The ls or dir command lists the files in the current directory on the remote host, and the CD will be transferred to the corresponding directory on the remote host.

Similarly, lpwd displays the current directory on the local machine, and the LCD changes the current directory on the local machine. Psftp does not provide commands to list files in the current directory on the local machine. To do that, you can use "! Dir. "! "Indicates executing commands on the local machine.

GET/put is used to download/upload files, while mget/mput is used to download/upload files in batches. Del or RM is used to delete files on the remote host. After the operation is complete, use close to close the connection, or use quit, bye, or exit to close the connection and exit psftp. Other commands are required (few). If you change the CHMOD permission, move the file mV, and so on, you can view the attached help documentation.

Finally, the most important command is "help", which will list a list of psftp commands. If you cannot remember what commands to use, just make a help.

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.