File Transfer commands for Linux and Windows
ArticleCategory: Operating System
SFTP operation window
File> connect SFTP label Java Code
- SFTP> lls displays the content of the current directory
- SFTP> LCD G: \ enter the local g Disk
- SFTP> put phpmyadmin.zip: Upload the phpmyadmin.zip file from the local drive to/home
- SFTP> Get gscx.zip: Download The gscx.zip file from/hometo a local g Disk
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...