Store key in cache freezes

$> git clone git@gitlab.ldv.ei.tum.de:group/repo
Cloning into 'repo'...
The server's host key is not cached. You have no guarantee
that the server is the computer you think it is.
The server's ssh-ed25519 key fingerprint is:
ssh-ed25519 255 SHA256:LQuieMSWGS70wwpREO8IG6lDAuJYtfJBs3XgEwlf4IM
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the
connection.
Store key in cache? (y/n, Return cancels connection, i for more info)
...

This command hangs and the host key cannot be stored.

Solution:

Type this command and store the key

plink.exe -agent -v gitlab.ldv.ei.tum.de


Allow Script Execution 

. : Die Datei "...\TUM-PC\Dokumente\WindowsPowerShell\profile.ps1" kann nicht geladen werden, da   die Ausführung von Skripts auf diesem System deaktiviert ist. Weitere Informationen finden Sie unter
"about_Execution_Policies" (https:/go.microsoft.com/fwlink/?LinkID=135170).
In Zeile:1 Zeichen:3
+ . '\\nas.ads.mwn.de\user\TUM-PC\Dokumente\WindowsPowerShell\profil ...
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : Sicherheitsfehler: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

Solution:

Set Execution Policy to Remote Signed

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
  • Keine Stichwörter