Common usage of ssh client and sftp File Transfer in linux

Source: Internet
Author: User
General Usage of ssh client and sftp File Transfer in linux-Linux Enterprise Application-Linux server application information. The following is a detailed description. I used to use ssh to connect to the server on windows, and I usually use putty.

This period of time has been working on linux. Because linux generally comes with an ssh client, that is, an ssh command. In addition, there is also a command sftp for safe file transfer, to manage linux servers today, these two command line tools are used in linux. The most common usage of these tools is as follows:

Assume that the server ip address is 61.145.34.33, the port number of the ssh service is 9186, and a user is sshuser on the server;

The command to log on to the server using ssh is:
> Ssh-l sshuser 61.145.34.33-p 9186

After you press enter, If you log on for the first time, you will be prompted for an authentication message. You can enter yes, and then enter the password of the server sshuser to log on;

The command to log on to the server with sftp is:
> Sftp-oPort = 9186 sshuser@61.145.34.33

After you press enter, enter the password of the server sshuser to log on, and a sftp> environment will be displayed. At this time, if you type help, you will see all command help, which is very similar to the ftp command line tool, such as get and put.

For other usage of these two command lines, refer to its online manual.
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.