sftp
fonte: http://olinux.uol.com.br/artigos/455/1.html
O SCP é diferente do FTP, você pode manter os atributos dos arquivos (data de acesso, modificação e as permissões). Além de transferir arquivos entre seu computador e um host remoto, SCP também pode transferir arquivos entre dois servidores remotos.
O SCP funciona com o SSH1 que já está em desuso. O SFTP trabalha com o protocolo mais atual: SSH2.
O SFTP implementa tudo que um FTP faz e outras operações mais.
O SFTP roda num SSH com a porta 22 por padrão. O nome do comando no Linux é sftp.
Para iniciar uma sessão faça:
sftp vai pedir uma senha e depois de autenticado, apresenta um shell sftp>. No shell, é possível usar os mesmos comandos do ftp, tais como cd, lcd, ls, chmod, chgrp, get, put, rename, and rmdir. Para finalizar, digite exit.
sftp> help
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
progress Toggle display of progress meter
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
sftp>
Comments (0)
You don't have permission to comment on this page.