The “sftp” is used for secure file transfer between two hosts over an SSH (Secure Shell) connection. This provides an encrypted way of moving files between systems.
- About sftp: Its a secure file transfer program
- Comes From : openssh-clients-5.3p1
- Configuration Files:
- Path: /usr/bin/sftp
Examples:
1. To ftp a particular host
# sftp 192.168.27.100 |
2. To specify the use of protocol version 1
# sftp -1 192.168.27.100 |
3. To specify the size of buffer when sftp uses to transfer files
# sftp -B 1024 192.168.27.100 |
4. To enable compression
# sftp -C 192.168.27.100 |
5. To specify the shh configuration file to be used
# sftp -F ssh_config 192.168.27.100 |
6. To pass ssh options
# sftp -o ssh_options 192.168.27.100 |
7. To connect directly to a local
# sftp server sftp -P |
8. To specify how many requests may be outstanding at any one time
# sftp -R 10 192.168.27.100 |
9. To specify the name of the program to be used for encryption
# sftp -S program 192.168.27.100 |
10. To specifies the SSH2 subsystem or the path for sftp server on the remote host
# sftp -s subsystem 192.168.27.100 |
11. To raise the logging level
# sftp -v 192.168.27.100 |
Related Commands: ftp, ls, scp, ssh, ssh-add, ssh-keygen, glob, ssh_config, sftp-server, sshd