{"id":3189,"date":"2024-01-04T10:13:34","date_gmt":"2024-01-04T10:13:34","guid":{"rendered":"\/tutorials\/?p=3189"},"modified":"2025-12-18T13:48:47","modified_gmt":"2025-12-18T13:48:47","slug":"wie-man-sftp-verwendet","status":"publish","type":"post","link":"\/de\/tutorials\/wie-man-sftp-verwendet\/","title":{"rendered":"Wie man SFTP (SSH File Transfer Protocol) verwendet"},"content":{"rendered":"<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.hostinger.com\/de\/tutorials\/was-ist-ftp\/\"><strong>FTP<\/strong><\/a> ist die Standardmethode zum &Uuml;bertragen von Dateien oder anderen Daten zwischen Computern, aber sie wird in der heutigen sicherheitsbewussten Umgebung immer mehr veraltet. Gl&uuml;cklicherweise kommt hier SFTP ins Spiel, was besonders n&uuml;tzlich f&uuml;r VPS-Hosting-Benutzer ist.<\/p><p class=\"wp-block-paragraph\">In diesem Leitfaden zeigen wir Ihnen, wie Sie SFTP f&uuml;r sichere Datei&uuml;bertragungen verwenden, sprechen &uuml;ber einige n&uuml;tzliche Befehle und erl&auml;utern genauer, wie es funktioniert.<\/p><div class=\"wp-block-rank-math-toc-block\"><h2 id=\"h-inhaltsverzeichnis\">Inhaltsverzeichnis<\/h2><nav><ul><li><a href=\"#h-wie-verbindet-man-sich-mit-sftp\">Wie verbindet man sich mit SFTP?<\/a><\/li><li><a href=\"#h-wie-ubertragt-man-dateien-mit-sftp\">Wie &uuml;bertr&auml;gt man Dateien mit SFTP?<\/a><ul><li><a href=\"#h-ubertragung-von-remote-dateien-von-einem-server-auf-das-lokale-system\">&Uuml;bertragung von Remote-Dateien von einem Server auf das lokale System<\/a><\/li><li><a href=\"#h-dateien-von-dem-lokalen-rechner-auf-einen-remote-server-ubertragen\">Dateien von dem lokalen Rechner auf einen Remote Server &uuml;bertragen<\/a><\/li><\/ul><\/li><li><a href=\"#h-befehle-zur-navigation-mit-sftp\">Befehle zur Navigation mit SFTP<\/a><\/li><li><a href=\"#h-grundlagen-der-dateipflege-mit-sftp\">Grundlagen der Dateipflege mit SFTP<\/a><\/li><li><a href=\"#h-liste-nutzlicher-sftp-befehle\">Liste n&uuml;tzlicher SFTP-Befehle<\/a><\/li><li><a href=\"#h-was-ist-sftp\">Was ist SFTP?<\/a><\/li><li><a href=\"#h-fazit\">Fazit<\/a><\/li><\/ul><\/nav><\/div><h2 class=\"wp-block-heading\" id=\"h-wie-verbindet-man-sich-mit-sftp\"><strong>Wie verbindet man sich mit SFTP?<\/strong><\/h2><p class=\"wp-block-paragraph\">SFTP ist ein Subsystem von SSH. Daher unterst&uuml;tzt es alle SSH-Authentifizierungsmethoden. Obwohl es einfacher ist, die Passwortauthentifizierung einzurichten und zu verwenden, ist es viel bequemer und sicherer, SSH-Schl&uuml;ssel f&uuml;r eine passwortlose SFTP-Anmeldung zu erstellen.<\/p><p class=\"wp-block-paragraph\">Sobald Sie bereit sind, folgen Sie den unten aufgef&uuml;hrten Schritten, um eine Verbindung mit SFTP herzustellen:<\/p><p class=\"wp-block-paragraph\">&Uuml;berpr&uuml;fen Sie Ihren SSH-Zugang mit einem dieser Befehle:<\/p><pre class=\"wp-block-preformatted\">ssh user@server_ipaddress\n\nssh user@remotehost_domainname<\/pre><p class=\"wp-block-paragraph\">Danach verlassen Sie die Sitzung, wenn keine Fehler aufgetreten sind.<\/p><p class=\"wp-block-paragraph\">Initiieren Sie eine SFTP-Verbindung mit den folgenden Befehlen:<\/p><pre class=\"wp-block-preformatted\">sftp user@server_ipaddress\n\nsftp user@remotehost_domainname<\/pre><p class=\"wp-block-paragraph\">Wenn Sie einen benutzerdefinierten SSH-Port verwenden, verwenden Sie einen dieser Befehle, um den SFTP-Port zu &auml;ndern:<\/p><pre class=\"wp-block-preformatted\">sftp -oPort=customport user@server_ipaddress\n\nsftp -oPort=customport user@remotehost_domainname<\/pre><p class=\"wp-block-paragraph\">So sollte es aussehen:<\/p><pre class=\"wp-block-preformatted\">sftp -oPort=49166 user@31.220.57.32<\/pre><p class=\"wp-block-paragraph\">Sobald Sie verbunden sind, sehen Sie eine SFTP-Aufforderung.<\/p><h2 class=\"wp-block-heading\" id=\"h-wie-ubertragt-man-dateien-mit-sftp\"><strong>Wie &uuml;bertr&auml;gt man Dateien mit SFTP?<\/strong><\/h2><p class=\"wp-block-paragraph\">Hier zeigen wir Ihnen, wie Sie mit SFTP Dateien vom Remote-System auf das lokale System &uuml;bertragen und umgekehrt.<\/p><p>\n\n\n        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Profi-Tipp                <\/p>\n            <\/div>\n            <p class=\"protip__content\">Sie k&ouml;nnen Ihre Dateien auch mit SFTP-Clients &uuml;bertragen, wie zum Beispiel <a href=\"https:\/\/winscp.net\/eng\/index.php\" target=\"_blank\" rel=\"noopener\">WinSCP<\/a> oder <a href=\"https:\/\/filezilla-project.org\/\" target=\"_blank\" rel=\"noopener\">FileZilla<\/a>.<\/p>\n                    <\/div>\n        \n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-ubertragung-von-remote-dateien-von-einem-server-auf-das-lokale-system\"><strong>&Uuml;bertragung von Remote-Dateien von einem Server auf das lokale System<\/strong><\/h3><p class=\"wp-block-paragraph\">Um zu beginnen, &uuml;berpr&uuml;fen wir, welches lokale und welches Remote-Arbeitsverzeichnis wir verwenden. Um dies zu tun, verwenden wir diese SFTP-Befehle:<\/p><pre class=\"wp-block-preformatted\">sftp&gt; lpwd\n\nLocal directory: \/LocalDirectory\n\nsftp&gt; pwd\n\nRemote directory: \/RemoteDirectory<\/pre><p class=\"wp-block-paragraph\">Nun schauen wir, wie man eine Datei von einem Remote Server auf Ihren lokalen Rechner mit dem <strong>get<\/strong>-Befehl &uuml;bertr&auml;gt. Hier ist die grundlegende Syntax des <strong>get<\/strong>-Befehls:<\/p><pre class=\"wp-block-preformatted\">get \/RemoteDirectory\/filename.txt<\/pre><p class=\"wp-block-paragraph\">Um beispielsweise die Datei <strong>\/etc\/xinetd.conf<\/strong> vom Remote Server auf Ihren lokalen Rechner zu kopieren, w&uuml;rden Sie folgenden Befehl verwenden:<\/p><pre class=\"wp-block-preformatted\">get \/etc\/xinetd.conf<\/pre><p class=\"wp-block-paragraph\">Sobald der Download abgeschlossen ist, k&ouml;nnen Sie nun feststellen, dass die Datei <strong>xinetd.conf <\/strong>im Verzeichnis <strong>\/user\/home<\/strong> Ihres lokalen Rechners vorhanden ist.<\/p><p class=\"wp-block-paragraph\">Um mehrere Dateien mit SFTP herunterzuladen, verwenden Sie den <strong>mget<\/strong>-Befehl. Um alle Dateien in einem Verzeichnis namens <strong>\/etc<\/strong>, die die Erweiterung <strong>.conf<\/strong> haben, in Ihr aktuelles Arbeitsverzeichnis herunterzuladen, verwenden Sie den folgenden Befehl:<\/p><pre class=\"wp-block-preformatted\">mget \/etc\/*.conf<\/pre><p class=\"wp-block-paragraph\">Nach dem Download finden Sie alle <strong>*.conf<\/strong> Dateien im Verzeichnis<strong> \/user\/home<\/strong> Ihres lokalen Rechners.<\/p><h3 class=\"wp-block-heading\" id=\"h-dateien-von-dem-lokalen-rechner-auf-einen-remote-server-ubertragen\"><strong>Dateien von dem lokalen Rechner auf einen Remote Server &uuml;bertragen<\/strong><\/h3><p class=\"wp-block-paragraph\">Um eine Datei vom lokalen Rechner auf den Remote Server zu kopieren, verwenden wir erneut den <strong>get-<\/strong>Befehl. In diesem Fall wird die Syntax des <strong>get<\/strong>-Befehls wie folgt sein:<\/p><pre class=\"wp-block-preformatted\">get file.txt \/RemoteDirectory<\/pre><p class=\"wp-block-paragraph\">Um die Datei <strong>example.txt<\/strong> von einem lokalen Rechner auf den Remote Rechner zu verschieben, geben Sie den folgenden Befehl ein:<\/p><pre class=\"wp-block-preformatted\">put \/home\/user-name\/example.txt \/root<\/pre><p class=\"wp-block-paragraph\">Nun werden wir die Datei im Stammverzeichnis des entfernten Servers finden. Sie k&ouml;nnen auch versuchen, mehrere Dateien mit dem <strong>mput<\/strong>-Befehl zu &uuml;bertragen. Er funktioniert fast genauso wie <strong>mget<\/strong>:<\/p><pre class=\"wp-block-preformatted\">mput \/home\/user-name\/*.txt \/root<\/pre><p class=\"wp-block-paragraph\">Dieser Befehl w&uuml;rde alle Dateien mit der <strong>.txt<\/strong> Erweiterung im Ordner <strong>\/home\/user-name<\/strong> vom lokalen Rechner in das entfernte <strong>\/root<\/strong>-Verzeichnis verschieben.<\/p><p>\n\n\n        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Profi-Tipp                <\/p>\n            <\/div>\n            <p class=\"protip__content\">Bitte beachten Sie, dass Sie zum Herunterladen und Hochladen der Dateien mit SFTP den Befehl <strong>put<\/strong> oder <strong>get<\/strong> eingeben und die <strong>TAB<\/strong>-Taste dr&uuml;cken m&uuml;ssen.<\/p>\n                    <\/div>\n        \n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-befehle-zur-navigation-mit-sftp\"><strong>Befehle zur Navigation mit SFTP<\/strong><\/h2><p class=\"wp-block-paragraph\">Einige Befehle k&ouml;nnen verwendet werden, um effizienter durch die Remote und lokalen Server mit SFTP zu navigieren. Sie &auml;hneln denen, die Sie in der Linux-Shell-Aufforderung verwenden w&uuml;rden.<\/p><p class=\"wp-block-paragraph\">Zum Beispiel ist der Befehl <strong>pwd<\/strong> immer n&uuml;tzlich, um Sie dar&uuml;ber zu informieren, in welchem Arbeitsverzeichnis Sie sich gerade befinden.<\/p><pre class=\"wp-block-preformatted\">sftp&gt; pwd\nRemote directory: \/RemoteDirectory<\/pre><p class=\"wp-block-paragraph\">oder<\/p><pre class=\"wp-block-preformatted\">sftp&gt; lpwd\n\nLocal directory: \/LocalDirectory<\/pre><p class=\"wp-block-paragraph\">Sie k&ouml;nnen auch die Liste der Dateien und Verzeichnisse anzeigen, die Sie f&uuml;r das Remote Verzeichnis verwenden:<\/p><pre class=\"wp-block-preformatted\">ls<\/pre><p class=\"wp-block-paragraph\">Ebenso f&uuml;r das lokale Arbeitsverzeichnis:<\/p><pre class=\"wp-block-preformatted\">lls<\/pre><p class=\"wp-block-paragraph\">Zum Beispiel wird die Ausgabe so aussehen:<\/p><pre class=\"wp-block-preformatted\">Pictures &nbsp; &nbsp; Templates &nbsp; &nbsp; Media &nbsp; &nbsp; Text.txt &nbsp; &nbsp; Documents<\/pre><p class=\"wp-block-paragraph\">Um von einem Remote-Arbeitsverzeichnis zu einem anderen lokalen Arbeitsverzeichnis zu wechseln, geben Sie die folgenden Befehle ein:<\/p><pre class=\"wp-block-preformatted\">cd name_of_directory\n\nlcd name_of_directory<\/pre><p class=\"wp-block-paragraph\">Verwenden Sie schlie&szlig;lich die Befehle <strong>!<\/strong> und <strong>exit<\/strong>, um zur lokalen Shell zur&uuml;ckzukehren und SFTP zu beenden.<\/p><h2 class=\"wp-block-heading\" id=\"h-grundlagen-der-dateipflege-mit-sftp\"><strong>Grundlagen der Dateipflege mit SFTP<\/strong><\/h2><p class=\"wp-block-paragraph\">Mit SFTP k&ouml;nnen Sie auch Verzeichnisse und Dateien mit spezifischen Befehlen verwalten.<\/p><p class=\"wp-block-paragraph\">Um den Festplattenspeicher des entfernten Servers in Gigabyte zu &uuml;berpr&uuml;fen, verwenden Sie die <strong>df<\/strong>-Funktion wie folgt:<\/p><pre class=\"wp-block-preformatted\">df -h<\/pre><p class=\"wp-block-paragraph\">Hier ist ein Ausgabebeispiel:<\/p><pre class=\"wp-block-preformatted\">Filesystem &nbsp; &nbsp; &nbsp; &nbsp; Size&nbsp; Used Avail Use% Mounted on\n\n\/dev\/ploop29212p1 &nbsp; 59G&nbsp; 2.5G &nbsp; 56G &nbsp; 5% \/\n\nnone &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.5G &nbsp; &nbsp; 0&nbsp; 1.5G &nbsp; 0% \/sys\/fs\/cgroup\n\nnone &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.5G &nbsp; &nbsp; 0&nbsp; 1.5G &nbsp; 0% \/dev\n\ntmpfs&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.5G &nbsp; &nbsp; 0&nbsp; 1.5G &nbsp; 0% \/dev\/shm\n\ntmpfs&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.5G&nbsp; 568K&nbsp; 1.5G &nbsp; 1% \/run\n\ntmpfs&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 308M &nbsp; &nbsp; 0&nbsp; 308M &nbsp; 0% \/run\/user\/0<\/pre><p class=\"wp-block-paragraph\">Verwenden Sie den Befehl <strong>mkdir<\/strong>, um ein neues Verzeichnis auf dem Remote oder lokalen Server zu erstellen:<\/p><pre class=\"wp-block-preformatted\">mkdir name_of_directory\n\nlmkdir name_of_directory<\/pre><p class=\"wp-block-paragraph\">Sie k&ouml;nnen ein Verzeichnis vom Remote-Server mit dem <strong>rmdir<\/strong>-Befehl l&ouml;schen:<\/p><pre class=\"wp-block-preformatted\">rmdir name_of_directory<\/pre><p class=\"wp-block-paragraph\">Gleichzeitig ist auch das Umbenennen einer Remote Datei ziemlich unkompliziert:<\/p><pre class=\"wp-block-preformatted\">rename filename new_filename<\/pre><p class=\"wp-block-paragraph\">Hier ist ein Beispiel:<\/p><pre class=\"wp-block-preformatted\">rename Old_FileExample New_FileExample<\/pre><p class=\"wp-block-paragraph\">Wenn Sie eine Remote Datei l&ouml;schen m&ouml;chten, verwenden Sie den <strong>rm<\/strong>-Befehl:<\/p><pre class=\"wp-block-preformatted\">rm filename<\/pre><p class=\"wp-block-paragraph\">Der <strong>chown<\/strong>-Befehl verwendet wird, um den Besitzer einer Datei zu ersetzen:<\/p><pre class=\"wp-block-preformatted\">chown userid filename<\/pre><p class=\"wp-block-paragraph\"><strong>userid<\/strong> kann entweder ein <strong>Benutzername<\/strong> oder eine <strong>numerische Benutzer-ID<\/strong> sein. Zum Beispiel:<\/p><pre class=\"wp-block-preformatted\">chown UserOne FileExample\n\nchown 1234 FileExample<\/pre><p class=\"wp-block-paragraph\"><strong>chgrp<\/strong> wird verwendet, um den Gruppenbesitzer einer Datei zu &auml;ndern:<\/p><pre class=\"wp-block-preformatted\">chgrp groupid filename<\/pre><p class=\"wp-block-paragraph\">Zum Beispiel:<\/p><pre class=\"wp-block-preformatted\">chgrp NewGroup FileExample<\/pre><p class=\"wp-block-paragraph\">Sie &auml;ndern eine Dateiberechtigung, indem Sie den interaktiven Befehl <strong>chmod<\/strong> verwenden:<\/p><pre class=\"wp-block-preformatted\">chmod 764 FileExample<\/pre><p class=\"wp-block-paragraph\">In diesem Beispiel steht der dreistellige Wert f&uuml;r die <strong>Benutzer<\/strong>, <strong>Gruppe<\/strong> und <strong>andere<\/strong> Benutzer der Datei.<\/p><p class=\"wp-block-paragraph\">Was die Berechtigungen zum <strong>Lesen (r)<\/strong>, <strong>Schreiben (w)<\/strong> und <strong>Ausf&uuml;hren (x)<\/strong> betrifft, so sind ihre Werte jeweils <strong>4<\/strong>, <strong>2<\/strong>, <strong>1<\/strong>. <strong>0<\/strong> kann auch verwendet werden, um keine Berechtigungen zu gew&auml;hren.<\/p><p class=\"wp-block-paragraph\">Um Berechtigungen zuzuweisen, berechnen Sie einfach die Gesamtwerte f&uuml;r jede Benutzerklasse. Hier ist eine Aufschl&uuml;sselung des Beispiels:<\/p><pre class=\"wp-block-preformatted\">chmod ugo FileExample\n\n# u represents the User who'll be able to read, write and execute the file.\n\n# g is for Groups, here we've given the permission to write and execute the file.\n\n# o or Others will only be able to read the file.<\/pre><h2 class=\"wp-block-heading\" id=\"h-liste-nutzlicher-sftp-befehle\"><strong>Liste n&uuml;tzlicher SFTP-Befehle<\/strong><\/h2><p class=\"wp-block-paragraph\">Wenn Sie einen schnellen Spickzettel ben&ouml;tigen, ist hier eine Liste aller verf&uuml;gbaren SFTP-Befehle. Sie k&ouml;nnen diese Liste selbst finden, indem Sie einfach den Befehl <strong>help<\/strong> oder <strong>?<\/strong> eingeben &mdash; beide f&uuml;hren zum gleichen Ergebnis.<\/p><pre class=\"wp-block-preformatted\">bye&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Quit sftp\n\ncd path&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Change remote directory to 'path'\n\nchgrp [-h] grp path&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Change group of file 'path' to 'grp'\n\nchmod [-h] mode path &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Change permissions of file 'path' to 'mode'\n\nchown [-h] own path&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Change owner of file 'path' to 'own'\n\ndf [-hi] [path]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Display statistics for current directory or\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;filesystem containing 'path'\n\nexit &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Quit sftp\n\nget [-afpR] remote [local] &nbsp; &nbsp; &nbsp; &nbsp; Download file\n\nhelp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Display this help text\n\nlcd path &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Change local directory to 'path'\n\nlls [ls-options [path]]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Display local directory listing\n\nlmkdir path&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Create local directory\n\nln [-s] oldpath newpath&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Link remote file (-s for symlink)\n\nlpwd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Print local working directory\n\nls [-1afhlnrSt] [path] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Display remote directory listing\n\nlumask umask &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set local umask to 'umask'\n\nmkdir path &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Create remote directory\n\nprogress &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Toggle display of progress meter\n\nput [-afpR] local [remote] &nbsp; &nbsp; &nbsp; &nbsp; Upload file\n\npwd&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Display remote working directory\n\nquit &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Quit sftp\n\nreget [-fpR] remote [local]&nbsp; &nbsp; &nbsp; &nbsp; Resume download file\n\nrename oldpath newpath &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Rename remote file\n\nreput [-fpR] local [remote]&nbsp; &nbsp; &nbsp; &nbsp; Resume upload file\n\nrm path&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Delete remote file\n\nrmdir path &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Remove remote directory\n\nsymlink oldpath newpath&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Symlink remote file\n\nversion&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Show SFTP version\n\n!command &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Execute 'command' in local shell\n\n!&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Escape to local shell<\/pre><h2 class=\"wp-block-heading\" id=\"h-was-ist-sftp\"><strong>Was ist SFTP?<\/strong><\/h2><p class=\"wp-block-paragraph\"><strong>SFTP,<\/strong> oder kurz <strong>SSH File Transfer Protocol <\/strong>bzw. <strong>Secure File Transfer Protocol<\/strong> ist eine viel sicherere Methode, um Dateien zu verschieben. Unter Verwendung des <a href=\"https:\/\/www.ssh.com\/ssh\/protocol\" target=\"_blank\" rel=\"noopener\"><strong>SSH-Protokolls<\/strong><\/a> unterst&uuml;tzt es Verschl&uuml;sselung und andere Sicherheitsmethoden, die dazu dienen, Datei&uuml;bertragungen besser zu sch&uuml;tzen. Es ist das einzige sichere Datei&uuml;bertragungs-Protokoll, das vor Angriffen zu jedem Zeitpunkt des Daten&uuml;bertragungsprozesses sch&uuml;tzt, wodurch es zum bevorzugten Protokoll wird.<\/p><p class=\"wp-block-paragraph\">W&auml;hrend der Datei&uuml;bertragung werden alle Daten in Pakete aufgeteilt und &uuml;ber eine einzige sichere Verbindung gesendet.<\/p><p class=\"wp-block-paragraph\">Sensible Informationen werden verschl&uuml;sselt und beim &Uuml;bertragen zwischen dem Client und dem Server unlesbar gemacht. Mit anderen Worten wird der urspr&uuml;ngliche Inhalt (Klartext) durch eine unzusammenh&auml;ngende Zeichenkette (Geheimtext) ersetzt.<\/p><p class=\"wp-block-paragraph\">Nur der Empf&auml;nger mit dem erforderlichen Entschl&uuml;sselungsschl&uuml;ssel wird in der Lage sein, den urspr&uuml;nglichen Inhalt zu sehen. Dies verhindert jeglichen unbefugten Zugriff w&auml;hrend der Datei&uuml;bertragung.<\/p><p class=\"wp-block-paragraph\">Das regul&auml;re Datei&uuml;bertragungsprotokoll (FTP) verf&uuml;gt &uuml;ber zwei verschiedene Kan&auml;le zum Datenaustausch &mdash; den Befehlskanal und den Datenkanal. Im Gegensatz dazu hat SFTP nur einen verschl&uuml;sselten Kanal, auf dem die Daten in verschl&uuml;sselten, formatierten Paketen ausgetauscht werden und ist daher die bevorzugte Alternative in Bezug auf Sicherheit.<\/p><p>\n\n\n        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Profi-Tipp                <\/p>\n            <\/div>\n            <p class=\"protip__content\">Lernen Sie mehr dar&uuml;ber, <a href=\"\/de\/tutorials\/was-ist-ein-vps\/\">was VPS-Hosting ist<\/a>.<\/p>\n                    <\/div>\n        \n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-fazit\"><strong>Fazit<\/strong><\/h2><p class=\"wp-block-paragraph\">Das deckt im Grunde die Grundlagen ab, wie man SFTP f&uuml;r sichere Datei&uuml;bertragungen verwendet. Wir hoffen, dass dieses Tutorial n&uuml;tzlich war. Wenn Sie jedoch mehr Informationen &uuml;ber FTP ben&ouml;tigen, k&ouml;nnen Sie weitere Tutorials <a href=\"https:\/\/www.hostinger.com\/tutorials\/ftp\/\"><strong>hier<\/strong><\/a> finden.<\/p><p class=\"wp-block-paragraph\">Wenn Sie weitere Fragen haben, z&ouml;gern Sie nicht, unten einen Kommentar zu hinterlassen.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FTP ist die Standardmethode zum &Uuml;bertragen von Dateien oder anderen Daten zwischen Computern, aber sie wird in der heutigen sicherheitsbewussten Umgebung immer mehr veraltet. Gl&uuml;cklicherweise kommt hier SFTP ins Spiel, was besonders n&uuml;tzlich f&uuml;r VPS-Hosting-Benutzer ist. In diesem Leitfaden zeigen wir Ihnen, wie Sie SFTP f&uuml;r sichere Datei&uuml;bertragungen verwenden, sprechen &uuml;ber einige n&uuml;tzliche Befehle und [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/de\/tutorials\/wie-man-sftp-verwendet\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":392,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"Wie man SFTP verwendet - Ein umfassender Leitfaden","rank_math_description":"In diesem Leitfaden zeigen wir Ihnen, wie Sie SFTP verwenden, sprechen \u00fcber einige n\u00fctzliche Befehle und erl\u00e4utern genauer, wie es funktioniert.","rank_math_focus_keyword":"wie man sftp verwendet","footnotes":""},"categories":[23],"tags":[],"class_list":["post-3189","post","type-post","status-publish","format-standard","hentry","category-ssh"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-use-sftp-to-safely-transfer-files\/","default":1},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/como-usar-sftp-ssh-file-transfer-protocol\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/sftp\/","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/como-usar-sftp\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/transfer-file-dengan-sftp\/","default":0},{"locale":"de-DE","link":"https:\/\/www.hostinger.com\/de\/tutorials\/wie-man-sftp-verwendet\/","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-use-sftp-to-safely-transfer-files\/","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-use-sftp-to-safely-transfer-files\/","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-use-sftp-to-safely-transfer-files\/","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-use-sftp-to-safely-transfer-files\/","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-use-sftp-to-safely-transfer-files\/","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-use-sftp-to-safely-transfer-files\/","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-use-sftp-to-safely-transfer-files\/","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/como-usar-sftp\/","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/como-usar-sftp\/","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/como-usar-sftp\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/como-usar-sftp-ssh-file-transfer-protocol\/","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/de\/tutorials\/wp-json\/wp\/v2\/posts\/3189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/de\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/de\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/de\/tutorials\/wp-json\/wp\/v2\/users\/392"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/de\/tutorials\/wp-json\/wp\/v2\/comments?post=3189"}],"version-history":[{"count":7,"href":"https:\/\/www.hostinger.com\/de\/tutorials\/wp-json\/wp\/v2\/posts\/3189\/revisions"}],"predecessor-version":[{"id":7851,"href":"https:\/\/www.hostinger.com\/de\/tutorials\/wp-json\/wp\/v2\/posts\/3189\/revisions\/7851"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/de\/tutorials\/wp-json\/wp\/v2\/media?parent=3189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/de\/tutorials\/wp-json\/wp\/v2\/categories?post=3189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/de\/tutorials\/wp-json\/wp\/v2\/tags?post=3189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}