{"id":2809,"date":"2026-11-03T16:57:31","date_gmt":"2026-11-03T15:57:31","guid":{"rendered":"https:\/\/hitco.at\/blog\/?p=2809"},"modified":"2026-11-03T18:54:06","modified_gmt":"2026-11-03T17:54:06","slug":"winscp-zugriff-hitco","status":"publish","type":"post","link":"https:\/\/hitco.at\/blog\/winscp-zugriff-hitco\/","title":{"rendered":"Mittels WinSCP und SSH-Key auf hitco.at WebSpace zugreifen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Dieser kurze Anleitung beschreibt, wie der SSH-Key authentifizierte Zugriff mittels WinSCP auf den hitco.at Webspace funktioniert.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Vorbereitung: Installation von WinSCP und PuTTY<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Falls WinSCP noch nicht installiert ist, wie folgt vorgehen:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Im Startmen\u00fc nach &#8222;<strong>Powershell<\/strong>&#8220; suchen und (mit Rechtsklick im Kontext-Men\u00fc) &#8222;<strong>Als Administrator ausf\u00fchren<\/strong>&#8222;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In der gestarteten <strong>PowerShell-Konsole<\/strong> nun folgenden <strong>Befehl ausf\u00fchren:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: powershell; gutter: false; title: ; notranslate\" title=\"\">\nwinget install -e --id WinSCP.WinSCP --scope machine --accept-package-agreements --accept-source-agreements\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Damit installiert sich WinSCP am System, welches danach im <strong>Startmen\u00fc als &#8222;WinSCP&#8220;<\/strong> zu finden ist:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: powershell; highlight: [1]; title: ; notranslate\" title=\"\">\nPS C:\\&gt; winget install -e --id WinSCP.WinSCP --scope machine --accept-package-agreements --accept-source-agreements\nThe `msstore` source requires that you view the following agreements before using.\nTerms of Transaction: https:\/\/aka.ms\/microsoft-store-terms-of-transaction\nThe source requires the current machine&#039;s 2-letter geographic region to be sent to the backend service to function properly (ex. &quot;US&quot;).\n\nFound WinSCP &#x5B;WinSCP.WinSCP] Version 6.7\nThis application is licensed to you by its owner.\nMicrosoft is not responsible for, nor does it grant any licenses to, third-party packages.\nDownloading https:\/\/sourceforge.net\/projects\/winscp\/files\/WinSCP\/6.7\/WinSCP-6.7.msi\/download\n  \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588  24.9 MB \/ 24.9 MB\nSuccessfully verified installer hash\nStarting package install...\nSuccessfully installed\nPS C:\\&gt;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Au\u00dferdem <strong>PuTTY installieren<\/strong>, der Befehl lautet:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\nwinget install -e --id PuTTY.PuTTY --scope machine --accept-package-agreements --accept-source-agreements\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Damit installiert sich PuTTY am System, im Startmen\u00fc danach z.B. als PuTTY und <strong>PuTTYgen<\/strong> zu finden.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: powershell; highlight: [1]; title: ; notranslate\" title=\"\">\nPS C:\\&gt; winget install -e --id PuTTY.PuTTY --scope machine --accept-package-agreements --accept-source-agreements\nFound PuTTY &#x5B;PuTTY.PuTTY] Version 0.85.0.0\nThis application is licensed to you by its owner.\nMicrosoft is not responsible for, nor does it grant any licenses to, third-party packages.\nDownloading https:\/\/the.earth.li\/~sgtatham\/putty\/0.85\/w64\/putty-64bit-0.85-installer.msi\n  \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588  3.66 MB \/ 3.66 MB\nSuccessfully verified installer hash\nStarting package install...\nSuccessfully installed\nPS C:\\&gt;\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Erstellung eines SSH-Schl\u00fcsselpaares (SSH-Key)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Um einen (neuen) <strong>SSH-PrivateKey<\/strong> zu erstellen nun wie folgt vorgehen:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Aus dem Startmen\u00fc &#8222;<strong>PuTTYgen<\/strong>&#8220; starten<\/li>\n\n\n\n<li>Unten im Dialog den &#8222;Type of key&#8220; von Default &#8222;RSA&#8220; umstellen auf das modernere &#8222;<strong>EdDSA<\/strong>&#8220; (siehe <strong>[2]<\/strong>)<\/li>\n\n\n\n<li>Nun den &#8222;<strong>Generate<\/strong>&#8220; Button dr\u00fccken (siehe <strong>[3]<\/strong>) &#8230; man wird nun aufgefordert im freien Bereich des PuTTYgen die Maus zu bewegen, diese <strong>Mausbewegung <\/strong>f\u00fchrt der Key-Erstellungen &#8222;Zufallswerte&#8220; die vom Anwender stammen hinzu. Das dauert ein paar Sekunden, je schneller man die Maus im freien Feld bewegt umso rascher ist die Schl\u00fcssel-Erstellung abgeschlossen.<\/li>\n\n\n\n<li>Nun w\u00e4hlt man &#8222;<strong>Save private Key<\/strong>&#8220; (siehe <strong>[4]<\/strong>) und w\u00e4hlt einen (sicheren) Ablageort (Pfad und Dateinamen) f\u00fcr den Schl\u00fcssel.<\/li>\n\n\n\n<li>Wenn man keine Passphrase vergeben hat um den SSH-Key vor missbr\u00e4uchlichem Zugriff zu sch\u00fctzen, fragt nun ein Dialog nach, ob man wirklich keine Passphrase vergeben m\u00f6chte. Wenn man sich hierf\u00fcr entscheiden sollte &#8222;Ja&#8220; w\u00e4hlen, andernfalls vor dem Speichern noch eine &#8222;Key passphrase&#8220; mit welcher der SSH-Key verschl\u00fcsselt gespeichert wird ins vorgesehene Feld eintragen und merken bzw. in seiner Passwort-Verwaltung hinterlegen.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/hitco.at\/blog\/wp-content\/uploads\/PuTTYgen-SSH-Key-Generierung.png\"><img loading=\"lazy\" decoding=\"async\" width=\"609\" height=\"476\" src=\"https:\/\/hitco.at\/blog\/wp-content\/uploads\/PuTTYgen-SSH-Key-Generierung.png\" alt=\"\" class=\"wp-image-2817\" srcset=\"https:\/\/hitco.at\/blog\/wp-content\/uploads\/PuTTYgen-SSH-Key-Generierung.png 609w, https:\/\/hitco.at\/blog\/wp-content\/uploads\/PuTTYgen-SSH-Key-Generierung-300x234.png 300w, https:\/\/hitco.at\/blog\/wp-content\/uploads\/PuTTYgen-SSH-Key-Generierung-79x62.png 79w\" sizes=\"auto, (max-width: 609px) 100vw, 609px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Der Vorgang der SSH-Key-Erstellung ist nun abgeschlossen.<\/strong> Das so erstellte &#8222;.ppk&#8220; = PuTTY-Private-Key File ist der private Schl\u00fcssel, welcher sicher zu verwahren ist. Diese Datei ist niemandem (auch nicht dem Administrator des Servers) zug\u00e4nglich zu machen!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nun gilt es noch den Public-Key (den \u00f6ffentlichen Schl\u00fcssel) an den Administrator des SFTP\/SSH-Servers weiterzureichen, damit dieser den Schl\u00fcssel zur Authentifizierung des Benutzers hinterlegt.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Dieser <strong>Public-Key<\/strong> wird im oberen Bereich des Tools (siehe <strong>[5]<\/strong>, im Screenshot gr\u00fcn umrandet markiert) angezeigt. Diese ca. anderthalb Zeilen Text kopieren, und dem Server-Administrator per E-Mail zukommen lassen. Hier im Beispiel w\u00e4re das:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\nssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA9v2WnnSlOdAO2x0ZADnftjaiYdhD7d4507VZV3OUfP eddsa-key-20261103\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Wenn bereits Zugang zum Server besteht, z.B. weil man bereits einen SFTP-Zugang zum Server hat und lediglich den SSH-Schl\u00fcssel tauschen m\u00f6chte, kann exakt dieser Public-Key auch selbst\u00e4ndig ausgetauscht werden. Im Home-Verzeichnis findet man im Verzeichnis <code><strong>.ssh<\/strong><\/code> eine Datei <code><strong>authorized_keys<\/strong><\/code> in welcher die f\u00fcr den jeweiligen Benutzer autorisierten SSH-Public-Keys eingetragen werden, je Schl\u00fcssel eine Zeile.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">WinSCP Server-Zugriffs-Profil einrichten<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Aus dem Startmen\u00fc &#8222;<strong>WinSCP<\/strong>&#8220; starten.<\/li>\n\n\n\n<li>Ein neues Verbindungsziel anlegen (siehe <strong>[2]<\/strong>).<\/li>\n\n\n\n<li>Die Serveradresse (siehe <strong>[3]<\/strong>) lautet: <code><strong>sftp.hitco.at<\/strong><\/code><\/li>\n\n\n\n<li>Der Benutzername wurde vom Administrator des Server mitgeteilt, hier im Beispiel verwenden wir den Demo-Benutzer &#8222;<strong><code>www-gh<\/code><\/strong>&#8220; (siehe <strong>[4]<\/strong>).<\/li>\n\n\n\n<li>Nun den Button &#8222;<strong>Erweitert<\/strong>&#8220; (siehe <strong>[5]<\/strong>) klicken und aus dem Drop-Down-Men\u00fc &#8222;<strong>Erweitert &#8230;<\/strong>&#8220; w\u00e4hlen.<\/li>\n\n\n\n<li>Es \u00f6ffnet sich der Dialog &#8222;Erweiterte Einstellungen f\u00fcr Verbindungsziele&#8220; =&gt; Hier w\u00e4hlt man unter <strong>SSH <\/strong>die Rubrik <strong>Authentifizierung<\/strong> (siehe <strong>[6]<\/strong>). <\/li>\n\n\n\n<li>Nun ist die &#8222;<strong>Datei mit privatem Schl\u00fcssel<\/strong>&#8220; (siehe <strong>[7]<\/strong>) auszuw\u00e4hlen.<\/li>\n\n\n\n<li>Es wird hierzu ein Datei-Auswahl-Dialog angezeigt mit dem die zuvor mittels PuTTYgen erstellte <strong>PPK-Datei<\/strong> zu w\u00e4hlen ist (siehe <strong>[8]<\/strong>).<\/li>\n\n\n\n<li>Die gew\u00e4hlte Datei best\u00e4tigt man mittels &#8222;\u00d6ffnen&#8220; (siehe <strong>[9]<\/strong>). Danach schlie\u00dft man den Dialog &#8222;Erweiterte Einstellungen f\u00fcr Verbindungsziele&#8220; mit <strong>OK<\/strong>.<\/li>\n\n\n\n<li>Nun w\u00e4hlt man &#8222;<strong>Speichern<\/strong>&#8220; (siehe [10]) und akzeptiert den vorgeschlagenen Namen bzw. vergibt selbst einen geeigneten Namen f\u00fcr das Verbindungsziel.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindungsziel-erstellen.png\"><img loading=\"lazy\" decoding=\"async\" width=\"834\" height=\"855\" src=\"https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindungsziel-erstellen.png\" alt=\"\" class=\"wp-image-2821\" srcset=\"https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindungsziel-erstellen.png 834w, https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindungsziel-erstellen-293x300.png 293w, https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindungsziel-erstellen-768x787.png 768w, https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindungsziel-erstellen-80x82.png 80w\" sizes=\"auto, (max-width: 834px) 100vw, 834px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Am so erstellten Verbindungsziel kann man sich nun &#8222;<strong>Anmelden<\/strong>&#8220; (siehe <strong>[11]<\/strong>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Bei der ersten Verbindungsaufnahme mit dem Server wird dessen SSH-Hostschl\u00fcssel angezeigt und die Best\u00e4tigung eingeholt, dass zu diesem Server eine Verbindung hergestellt und der noch nicht gecachte Host-Schl\u00fcssel f\u00fcr zuk\u00fcnftige Verbindungs-Aufnahmen gespeichert werden soll. Dies mit &#8222;<strong>Akzeptieren<\/strong>&#8220; (siehe <strong>[12]<\/strong>) best\u00e4tigen.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindung-herstellen-Hostkey.png\"><img loading=\"lazy\" decoding=\"async\" width=\"468\" height=\"466\" src=\"https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindung-herstellen-Hostkey.png\" alt=\"\" class=\"wp-image-2822\" srcset=\"https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindung-herstellen-Hostkey.png 468w, https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindung-herstellen-Hostkey-150x150.png 150w, https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindung-herstellen-Hostkey-300x300.png 300w, https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindung-herstellen-Hostkey-79x79.png 79w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Danach ist die Verbindung zum Server hergestellt, und mittels WinSCP k\u00f6nnen (wie gewohnt) mittels Drag+Drop bzw. im zwei-Fenster-Stil (links lokal, rechts der Server) Dateien \/ Verzeichnisse kopiert bzw. Dateien auch direkt \u00fcber das Kontext-Men\u00fc am Server editiert werden.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Das Document-Root-Verzeichnis des Webauftritts findet man im Benutzerprofil unter: <strong><code>$Benutzername\/www\/$Domain\/html<\/code><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindung-hergestellt.png\"><img loading=\"lazy\" decoding=\"async\" width=\"862\" height=\"458\" src=\"https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindung-hergestellt.png\" alt=\"\" class=\"wp-image-2823\" srcset=\"https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindung-hergestellt.png 862w, https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindung-hergestellt-300x159.png 300w, https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindung-hergestellt-768x408.png 768w, https:\/\/hitco.at\/blog\/wp-content\/uploads\/WinSCP-Verbindung-hergestellt-79x42.png 79w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Dieser kurze Anleitung beschreibt, wie der SSH-Key authentifizierte Zugriff mittels WinSCP auf den hitco.at Webspace funktioniert. Vorbereitung: Installation von WinSCP und PuTTY Falls WinSCP noch nicht installiert ist, wie folgt vorgehen: Im Startmen\u00fc nach &#8222;Powershell&#8220; suchen und (mit Rechtsklick im Kontext-Men\u00fc) &#8222;Als Administrator ausf\u00fchren&#8222; In der gestarteten PowerShell-Konsole nun folgenden Befehl ausf\u00fchren: Damit installiert sich WinSCP am System, welches danach&#8230; <\/p>\n","protected":false},"author":1,"featured_media":2823,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[3,635,23],"tags":[641,642,643],"class_list":["post-2809","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-it","category-powershell","category-windows","tag-hitco-at","tag-webspace","tag-winscp"],"_links":{"self":[{"href":"https:\/\/hitco.at\/blog\/wp-json\/wp\/v2\/posts\/2809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hitco.at\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hitco.at\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hitco.at\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hitco.at\/blog\/wp-json\/wp\/v2\/comments?post=2809"}],"version-history":[{"count":14,"href":"https:\/\/hitco.at\/blog\/wp-json\/wp\/v2\/posts\/2809\/revisions"}],"predecessor-version":[{"id":2827,"href":"https:\/\/hitco.at\/blog\/wp-json\/wp\/v2\/posts\/2809\/revisions\/2827"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hitco.at\/blog\/wp-json\/wp\/v2\/media\/2823"}],"wp:attachment":[{"href":"https:\/\/hitco.at\/blog\/wp-json\/wp\/v2\/media?parent=2809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hitco.at\/blog\/wp-json\/wp\/v2\/categories?post=2809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hitco.at\/blog\/wp-json\/wp\/v2\/tags?post=2809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}