?

10 SFTP

Linux

5

(FTP) , . , FTP , , .

10  SFTP

, FTP , . - SCP SSH .

SFTP (Secure File Transfer Protocol) SSH 22 . SFTP GUI (FileZilla, WinSCP, FireFTP ).

: , SSH (Secure SHell) , . IP-, .

10 sftp, .


SFTP

SSH SFTP. SFTP, IP- . sftp>.

[root@merionet ~]# sftp merionet@127.48.137.6

Connecting to 127.48.137.6...
merionet@127.48.137.6's password:
sftp>

sftp , ? help .

sftp> ?
Available commands:
cd path                       Change remote directory to 'path'
lcd path                      Change local directory to 'path'
chgrp grp path                Change group of file 'path' to 'grp'
chmod mode path               Change permissions of file 'path' to 'mode'
chown own path                Change owner of file 'path' to 'own'
help                          Display this help text
get remote-path [local-path]  Download file
lls [ls-options [path]]       Display local directory listing
ln oldpath newpath            Symlink remote file
lmkdir path                   Create local directory
lpwd                          Print local working directory
ls [path]                     Display remote directory listing
lumask umask                  Set local umask to 'umask'
mkdir path                    Create remote directory
put local-path [remote-path]  Upload file
pwd                           Display remote working directory
exit                          Quit sftp
quit                          Quit sftp
rename oldpath newpath        Rename remote file
rmdir path                    Remove remote directory
rm path                       Delete remote file
symlink oldpath newpath       Symlink remote file
version                       Show SFTP version
!command                      Execute 'command' in local shell
!                             Escape to local shell
?                             Synonym for help

lpwd , pwd - .

sftp> lpwd
Local working directory: /
sftp> pwd
Remote working directory: /merionet/

, .

sftp> ls		[ ]
sftp> lls 	[ ]

.

sftp> put local.profile
Uploading local.profile to /merionet/local.profile

.

sftp> mput *.xls

.

sftp> get SettlementReport_1-10th.xls
Fetching /merionet/SettlementReport_1-10th.xls to SettlementReport_1-10th.xls

.
sftp> mget *.xls

: , get . , ( ).


.

sftp> cd test		[ ]
sftp> lcd Documents	[ ]

.

sftp> mkdir test			[ ]
sftp> lmkdir Documents	[ ]

.

sftp> rm Report.xls			[ ]
sftp> rmdir sub1			[ ]

: , .


sFTP Shell

! , Linux. exit, sftp>.

sftp> !

[root@sftp ~]# exit
Shell exited with status 1
sftp>

?


: