Zum Inhalt springen

Sftp: Unterschied zwischen den Versionen

Aus Foxwiki
imported>Abdalltifhannour
Keine Bearbeitungszusammenfassung
 
(52 dazwischenliegende Versionen von 6 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
´´sftp´´
{{DISPLAYTITLE:sftp}}
SSH File Transfer Protocol
'''topic''' - Kurzbeschreibung
Zur Navigation springen
Zur Suche springen
SFTP im TCP/IP-Protokollstapel: Anwendung SFTP
SSH
Transport TCP
Internet IP (IPv4, IPv6)
Netzzugang Ethernet Token
Bus Token
Ring FDDI …


Das SSH File Transfer Protocol oder Secure File Transfer Protocol (SFTP) ist eine für die Secure Shell (SSH) entworfene Alternative zum File Transfer Protocol (FTP), die Verschlüsselung ermöglicht.
== Beschreibung ==
== Installation ==
== Aufruf ==
=== Argumente ===
=== Optionen ===
=== Umgebung ===
=== Rückgabewert ===


Im Unterschied zum FTP über TLS (FTPS) begnügt sich SFTP mit einer einzigen Verbindung zwischen Client und Server.
== Konfiguration ==
=== Dateien ===


Obwohl das Protokoll SFTP im Kontext des SSH-2-Protokolls beschrieben wird, könnte es auch mit anderen Verfahren zur Authentifizierung und Verschlüsselung umgesetzt werden.[1]
== Anwendung ==
sftp root@192.168.1.119
== Sicherheit ==
== Dokumentation ==
=== RFC ===
=== Man-Page ===
=== Info-Pages ===
=== Siehe auch ===


passwort : yes[http://www.example.com Link-Text]
== Links ==
=== Projekt-Homepage ===
=== Weblinks ===


sftp >> cd...cd




  sftp
 
cd path                           Change remote directory to 'path'
= TMP =
chgrp grp path                     Change group of file 'path' to 'grp'
== sftp ==
chmod mode path                   Change permissions of file 'path' to 'mode'
Die andere Möglichkeit des Dateitransfers lautet '''sftp'''.
chown own path                     Change owner of file 'path' to 'own'
* Das funktioniert genau so wie der normale Kommandozeilen-FTP-Client:
df [-hi] [path]                    Display statistics for current directory or
 
                                  filesystem containing 'path'
sftp server
exit                               Quit sftp
 
get [-afPpRr] remote [local]       Download file
Connecting to server...
reget [-fPpRr] remote [local]     Resume download file
user@server's password:
reput [-fPpRr] [local] remote     Resume upload file
sftp> pwd
help                               Display this help text
Remote working directory: /export/home/user
lcd path                           Change local directory to 'path'
sftp> dir
lls [ls-options [path]]           Display local directory listing
[...]
lmkdir path                       Create local directory
wichtige_datei.txt
ln [-s] oldpath newpath           Link remote file (-s for symlink)
[...]
lpwd                               Print local working directory
sftp> get wichtige_datei.txt
ls [-1afhlnrSt] [path]             Display remote directory listing
Fetching /export/home/user/wichtige_datei.txt to wichtige_datei.txt
lumask umask                       Set local umask to 'umask'
/export/home/user/wichtige_datei.txt                                                    100%  62KB  62.2KB/s  00:00
mkdir path                         Create remote directory
sftp> quit
progress                           Toggle display of progress meter
 
put [-afPpRr] local [remote]       Upload file
Mit dem Befehl '''help''' bekommt man eine Übersicht über die möglichen Kommandos.
pwd                               Display remote working directory
 
quit                               Quit sftp
==SSH File Transfer Protocol==
rename oldpath newpath             Rename remote file
 
rm path                           Delete remote file
* Das SSH File Transfer Protocol oder Secure File Transfer Protocol (SFTP) ist eine für die Secure Shell (SSH) entworfene Alternative zum File Transfer Protocol (FTP), die Kryptografie ermöglicht.
rmdir path                         Remove remote directory
* Im Unterschied zum FTP über TLS (FTPS) begnügt sich SFTP mit einer einzigen Verbindung zwischen Client und Server.
symlink oldpath newpath           Symlink remote file
* Obwohl das Protokoll SFTP im Kontext des SSH-2-Protokolls beschrieben wird, könnte es auch mit anderen Verfahren zur Authentifizierung und Kryptografie umgesetzt werden.
version                           Show SFTP version
  $ sftp root@192.168.1.119
!command                           Execute 'command' in local shell
passwort :
!                                 Escape to loc
sftp >>
 
==Befehle==
{| class="wikitable sortable big"
|-
!Befehl !! Beschreibung
|-
|cd path ||Change remote 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'
|-
|df [-hi] [path]||                   Display statistics for current directory or filesystem containing 'path'
|-
|exit       ||                        Quit sftp
|-
|get [-afPpRr] remote [local]   ||  Download file
|-
|reget [-fPpRr] remote [local]   ||  Resume download file
|-
|reput [-fPpRr] [local] remote   ||  Resume upload 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 [-afPpRr] local [remote] ||    Upload file
|-
|pwd                           ||    Display remote working directory
|-
|quit                       ||      Quit sftp
|-
|rename oldpath newpath       ||      Rename remote 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 loc
|}
 
 
[[Kategorie:SSH/Befehl]]
[[kategorie:Linux/Befehl]]

Aktuelle Version vom 19. Februar 2026, 12:04 Uhr

topic - Kurzbeschreibung

Beschreibung

Installation

Aufruf

Argumente

Optionen

Umgebung

Rückgabewert

Konfiguration

Dateien

Anwendung

Sicherheit

Dokumentation

RFC

Man-Page

Info-Pages

Siehe auch

Projekt-Homepage

TMP

sftp

Die andere Möglichkeit des Dateitransfers lautet sftp.

  • Das funktioniert genau so wie der normale Kommandozeilen-FTP-Client:
sftp server 
Connecting to server...
user@server's password:
sftp> pwd
Remote working directory: /export/home/user
sftp> dir
[...]
wichtige_datei.txt
[...]
sftp> get wichtige_datei.txt
Fetching /export/home/user/wichtige_datei.txt to wichtige_datei.txt
/export/home/user/wichtige_datei.txt                                                     100%   62KB  62.2KB/s   00:00
sftp> quit

Mit dem Befehl help bekommt man eine Übersicht über die möglichen Kommandos.

SSH File Transfer Protocol

  • Das SSH File Transfer Protocol oder Secure File Transfer Protocol (SFTP) ist eine für die Secure Shell (SSH) entworfene Alternative zum File Transfer Protocol (FTP), die Kryptografie ermöglicht.
  • Im Unterschied zum FTP über TLS (FTPS) begnügt sich SFTP mit einer einzigen Verbindung zwischen Client und Server.
  • Obwohl das Protokoll SFTP im Kontext des SSH-2-Protokolls beschrieben wird, könnte es auch mit anderen Verfahren zur Authentifizierung und Kryptografie umgesetzt werden.
$ sftp root@192.168.1.119
passwort :
sftp >>

Befehle

Befehl Beschreibung
cd path Change remote 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'
df [-hi] [path] Display statistics for current directory or filesystem containing 'path'
exit Quit sftp
get [-afPpRr] remote [local] Download file
reget [-fPpRr] remote [local] Resume download file
reput [-fPpRr] [local] remote Resume upload 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 [-afPpRr] local [remote] Upload file
pwd Display remote working directory
quit Quit sftp
rename oldpath newpath Rename remote 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 loc