Linux network operating sftp command of Operation

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_25908839/article/details/92850239

SFTP (Secure FTP, FTP secure)
Function: FTP file transfer system like, which runs over into an analog connection and SSH FTP interface.
Features: distal need to run an FTP server to transfer files, but you must install and run the OpenSSH server. SFTP is an interactive command provides a command prompt.

(1) file transfer command. For automated FTP session specific host, user and password, the command is the same.
    cd / Home / slynux
    PUT testfile.jpg
    GET serverfile.jpg

    Run sftp:
        $ sftp the User @ DOMAINNAME
    exit sftp session:
    Enter quit command
(2) specify the port number in the other run
to specify the port number used -oPort sftp = PORTNO.
    = 422 [email protected] sftp -oPort $
    -oPort as the first parameter should sftp command.

From the "shell script Raiders II" Finishing

 

Guess you like

Origin blog.csdn.net/qq_25908839/article/details/92850239