Jump to content

SSH Client mit Konfigdatei


Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte erstelle einen neuen Beitrag zu Deiner Anfrage!

Empfohlene Beiträge

Geschrieben

Hallo!

 

Kennt einer von euch einen "freeware" SSH Client der mit einer eigenen Konfig arbeitet? Hintergrund ist, dass ich in dem Client bestimmte vorgefertigte Profile anlegen möchte und der User diese nicht zufällig löschen oder verändern kann/darf.

Bei Putty wird das wahrscheinlich irgendwo in der Registry abgelegt und von jedem User veränderbar *grrrrr

 

Auf eine extra Konfig kann man dann ja entsprechende Rechte geben und gut :)

 

 

Danke

Geschrieben

Aus der Doku von Putty:

4.26 Storing configuration in a file

 

PuTTY does not currently support storing its configuration in a file instead of the Registry. However, you can work around this with a couple of batch files.

 

You will need a file called (say) PUTTY.BAT which imports the contents of a file into the Registry, then runs PuTTY, exports the contents of the Registry back into the file, and deletes the Registry entries. This can all be done using the Regedit command line options, so it's all automatic. Here is what you need in PUTTY.BAT:

 

@ECHO OFF

regedit /s putty.reg

regedit /s puttyrnd.reg

start /w putty.exe

regedit /ea new.reg HKEY_CURRENT_USER\Software\SimonTatham\PuTTY

copy new.reg putty.reg

del new.reg

regedit /s puttydel.reg

 

This batch file needs two auxiliary files: PUTTYRND.REG which sets up an initial safe location for the PUTTY.RND random seed file, and PUTTYDEL.REG which destroys everything in the Registry once it's been successfully saved back to the file.

 

Here is PUTTYDEL.REG:

 

REGEDIT4

 

[-HKEY_CURRENT_USER\Software\SimonTatham\PuTTY]

 

Here is an example PUTTYRND.REG file:

 

REGEDIT4

 

[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY]

"RandSeedFile"="a:\\putty.rnd"

 

You should replace a:\putty.rnd with the location where you want to store your random number data. If the aim is to carry around PuTTY and its settings on one floppy, you probably want to store it on the floppy.

Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte erstelle einen neuen Beitrag zu Deiner Anfrage!

Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren

Du musst ein Benutzerkonto haben, um einen Kommentar verfassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen. Es ist einfach!

Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde dich hier an.

Jetzt anmelden
×
×
  • Neu erstellen...