Go to main content

Managing Remote Systems in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020

How to Open and Close an sftp Connection to a Remote System

  1. Open a connection to a remote system by using the sftp command.
    $ sftp remote-system

    If the connection succeeds, a confirmation message and prompt are displayed.

  2. If prompted, type your password.
    Password: password

    If the sftp interface accepts your password, it displays a confirmation message and the (sftp>) prompt.

    You can now use any of the commands that are supplied by the sftp interface, including help. The principal commands are summarized in Essential sftp Commands.

  3. Close the sftp connection.
    sftp> bye
Example 4  Opening an sftp Connection to a Remote System

This sftp session was established to connect to the remote system host1:

$ sftp host1
Connecting to host1.
Password: password