0% found this document useful (0 votes)
13 views2 pages

SFTP Command

SFTP (Secure File Transfer Protocol) operates over SSH on port 22 for secure file transfers and is integrated into various GUI tools. The document provides a command-line interface for SFTP, detailing commands for connecting, navigating directories, and transferring files. It includes examples of commands for uploading, downloading, and managing files and directories both locally and remotely.

Uploaded by

Rangaraj A.G
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

SFTP Command

SFTP (Secure File Transfer Protocol) operates over SSH on port 22 for secure file transfers and is integrated into various GUI tools. The document provides a command-line interface for SFTP, detailing commands for connecting, navigating directories, and transferring files. It includes examples of commands for uploading, downloading, and managing files and directories both locally and remotely.

Uploaded by

Rangaraj A.G
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SFTP Command

SFTP (Secure File Transfer Protocol) runs over SSH protocol on


standard port 22 by default to establish a secure connection.
SFTP has been integrated into many GUI tools

Connect to SFTP

sudeep@sudeep:~$ sftp [email protected]


[email protected]'s password:
Connected to 192.168.6.47.
sftp>

The available commands

sftp> ?
Available commands:
bye Quit sftp
cd path Change remote directory to 'path'
chgrp [-h] grp path Change group of file 'path' to 'grp'
chmod [-h] mode path Change permissions of file 'path' to
'mode'
chown [-h] own path Change owner of file 'path' to 'own'
df [-hi] [path] Display statistics for current
directory or filesystem containing 'path'
exit Quit sftp
get [-afpR] remote [local] Download file
help Display this help text
lcd path Change local directory to 'path'
lls [ls-options [path]] Display local directory listing
lmkdir path Create local directory
ln [-s] oldpath newpath Link remote file (-s for symlink)
lpwd Print local working directory
ls [-1afhlnrSt] [path] Display remote directory listing
lumask umask Set local umask to 'umask'
mkdir path Create remote directory
progress Toggle display of progress meter
put [-afpR] local [remote] Upload file
pwd Display remote working directory
quit Quit sftp
reget [-fpR] remote [local] Resume download file
rename oldpath newpath Rename remote file
reput [-fpR] local [remote] Resume upload file
rm path Delete remote file
rmdir path Remove remote directory
symlink oldpath newpath Symlink remote file
version Show SFTP version
!command Execute 'command' in local shell
! Escape to local shell
? Synonym for help
sftp>

sftp> lpwd
Local working directory: /home/sudeep
sftp> pwd
Remote working directory: /home/radarop
sftp>

sftp> ls (remote)
sftp> lls (Local)

sftp> put (Upload single file)


sftp> mput (Upload multiple file)

sftp> get (Download single file)


sftp> mget (Download multiple file)

You might also like