Remote login, remote copy command
Article Directory
learning target
- Be able to write remote copy, remote login command
1. Introduction remote login, remote copy command
command | Explanation |
---|---|
ssh | Remote Login |
scp | Remote Copy |
Use 2. ssh command
ssh is a security protocol designed for remote login provided, commonly used in telnet, ssh want to use the service, you need to install the appropriate server and client software after the software is installed successfully when you can use the ssh command, and later by remote server operating between remote login.
Telnet renderings:
Software installation steps:
- If Ubuntu as a server, you need to install ssh server software execute the command:. Sudo APT-GET-install OpenSSH Server
- If the client computer is macOS system you do not need to install ssh client software has been installed by default, and can be used directly ssh command
- If the client computer is a Windows system, you need to install OpenSSH for Windows software
ssh command format:
ssh username @ip address
ssh command renderings:
Description:
- You can install install ssh ssh client and server software on a single computer
- In Ubuntu install ssh client command: sudo apt-get install openssh-client
Use 3. scp command
scp is based on the ssh command for remote file copy, that is required to ensure that the server and the client computer to install the appropriate software ssh, then you can put the code we write copy to a remote server.
scp command format:
- Remote file copy
- scp local file remote server remote server username @ ip address: Specifies the path to copy to a remote server
- scp username @ remote server remote server ip address: The remote server specified file copied to the local computer path
- Remote copy destination
- scp -r local directory on the remote server username @ remote server ip address: Specifies the path to copy to a remote server
- scp -r remote server username @ remote server ip address: directory specified remote server to the local computer to copy the path
- -r recursively copy the entire directory represents
The remote server to the local file copy renderings:
The remote file server to the local copy renderings:
Local directory server to the remote copy renderings:
Directory of the remote server to the local copy renderings:
4. FileZilla use software
FileZilla is a free open source FTP software, visual way to upload and download files. Can later be replaced by FileZilla scp command
FIG FileZilla use effect:
5. Summary
- ssh remote login host computer command is equivalent to the direct operation of a remote computer.
- scp command remote copy operation is complete, note: Copy the folder need to add the -r option.
- A large number of file uploads and downloads can be done through visualization tools FileZilla.