Simplify

Putty 세션 백업, 복원하기 (How to Backup and restore putty sessions) 본문

Other/Dev. Tips

Putty 세션 백업, 복원하기 (How to Backup and restore putty sessions)

Simplify - Jonghun 2019. 6. 3. 10:47

들어가며


putty에 세션을 백업하고 복원하는 것이 가끔이나마 필요하여 다음과 같이 정리합니다. 출처는 글의 맨 아래에 명시 해 두었습니다. (현재는 이 방법이 조금 불편하여.. Termius 라는 앱으로 대체하고 사용중입니다)

 


백업/복원방법


1. Export

 

cmd.exe, require elevated prompt:

Only sessions:

regedit /e "%USERPROFILE%\Desktop\putty-sessions.reg" HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions


All settings:

regedit /e "%USERPROFILE%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham

 

Powershell


Only sessions:

reg export HKCU\Software\SimonTatham\PuTTY\Sessions ([Environment]::GetFolderPath("Desktop") + "\putty-sessions.reg")

 

All settings:

reg export HKCU\Software\SimonTatham ([Environment]::GetFolderPath("Desktop") + "\putty.reg")



2. Import


Double-click on the *.reg file and accept the import.

Alternative ways:

cmd.exe, require elevated command prompt:

regedit /i putty-sessions.reg
regedit /i putty.reg


PowerShell:

reg import putty-sessions.reg
reg import putty.reg


- Note: do not replace SimonTatham with your username.

- Note: It will create a *.reg file on the Desktop of the current user.

- Note: It will not export related SSH keys. 

출처 : https://stackoverflow.com/questions/13023920/how-to-export-import-putty-sessions-list

Comments