วิธีย้าย Saved Sessions ของ Putty จากเครื่อง Windows 7 ไป Windows 10

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: วิธีย้าย Saved Sessions ของ Putty จากเครื่อง Windows 7 ไป Windows 10

Re: วิธีย้าย Saved Sessions ของ Putty จากเครื่อง Windows 7 ไป Windows 10

โดย mindphp » 01/05/2018 2:06 pm

หมายเหตุ วิธีนี้ จะใช้ไม่ได้ กับ host ที่เราเชื่อมต่อด้วยการใช้ SSH keys

วิธีย้าย Saved Sessions ของ Putty จากเครื่อง Windows 7 ไป Windows 10

โดย mindphp » 01/05/2018 2:04 pm

วิธีย้าย Saved Sessions ของ Putty จากเครื่อง Windows 7 ไป Windows 10
ประโยชน์ คือ เราไม่ต้อง กรอกข้อมูล Host Name หรือ ip ใหม่สำหรับการเชื่อมต่อทีละรายการ ช่วยลดเวลาสำหรับ admin ที่ดูแล Server หลายตัว
ขั้นตอนดังนี้
1. Export regedit จากเครื่อง Windows 7 ด้วยคำสั่ง

โค้ด: เลือกทั้งหมด

regedit /e "%USERPROFILE%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham
โดยใช้โปรแกรม cmd.exe

2. Import ไฟล์ regedit ที่เครื่อง Windows 10 ด้วยคำสั่ง

โค้ด: เลือกทั้งหมด

reg export HKCU\Software\SimonTatham ([Environment]::GetFolderPath("Desktop") + "\putty.reg")
โดยใช้โปรแกรม PowerShell


ภาพประกอบ เป็นตัวอย่างไฟล์ ที่ export มาจาก Windows 7
putty.reg
putty.reg
putty-regdit.png (10.23 KiB) Viewed 3261 times

ข้างบน