Thursday 10, Apr 2025
We are moved to new domain
Click -> www.ehowtonow.com
Sunday, 3 September 2017

sftp Linux Command

sftp

sftp [options] host
An interactive file transfer program, similar to ftp except that it uses ssh to perform file transfers securely. sftp connects to host and logs in, prompting for a password if required. The host can be specified in the following ways:
host [user@] host[:file [file] ...] [user@] host[:dir[/] ]
If user is specified, that username is used for the login. If any files are specified, the sftp client automatically retrieves them after the user has been authenticated, and then exits. If a directory dir is specified, the client starts in that directory on the remote host. sftp is part of the OpenSSH suite of network tools

Options

-1
Use SSH1. The default is to use SSH2.

-b file
Run in batch mode, taking commands from the specified file. Requires the use of a noninteractive authentication mechanism.

-B bytes
Specify the size of the buffer sftp uses for file transfers. Default is 32768 bytes.

-C
Enable compression (uses ssh -C).

-F file
Use file as the ssh configuration file instead of the default system configuration file. The systemwide file is usually /etc/ssh/ssh_config, and per-user files are $HOME/.ssh/config.

-ooption
Pass an option to ssh. The passed option is in the format used by ssh_config(5) (e.g., -oPORT=nn, where nn is the port number). -o can appear more than once to pass multiple options to ssh. This option is useful for passing options that don't have an equivalent sftp command-line option.

-P server_path
Connect directly to the local sftp server specified in server_path. Useful for debugging.

-R num
Specify the number of requests that may be outstanding at any time (default 16).

-s subsys|server_path
Specify the SSH2 subsystem or path to the sftp server on the remote system. Specifying the path is useful for using sftp via SSH1 or if the remote sshd does not have an sftp subsystem configured.

-S program
Specify the name of a program that understands ssh options and that you want to use for the encrypted connection.

-v
Raise the logging level.

Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer

Related Posts:

  • mkdir Create directory Linux Command mkdir mkdir [options] directories Create one or more directories. You must have write permission in the parent directory in order to create a directory. See also rmdir. The default mode of the new directory is 0777, modif… Read More
  • Change Directory cd Linux Command Change Directory cd Linux Command NAME cd - Change working directory SYNOPSIS … Read More
  • Accept Linux Command accept accept [option] destination or accept [ -E ] [ -U username ] [ -h hostname[:port] ] destination(s)   Description  System administration command. Instruct printing system to accept jobs for the speci… Read More
  • aclocal Linux Command aclocal aclocal [options] Description: GNU autoconf tool. Place m4 macro definitions needed by autoconf into a single file. The aclocal command first scans for macro definitions in m4 files in its default directory (/usr/… Read More
  • cp Copy Linux Command cp cp [options] file1 file2 cp [options] files directory Description : Copy file1 to file2, or copy one or more files to the same names under directory. If the destination is an existing file, the file is overwritten; if… Read More
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments

0 comments:

Post a Comment

Item Reviewed: sftp Linux Command Rating: 5 Reviewed By: eHowToNow