ตรวจสอบ Putty เวอร์ชั่นล่าสุดได้จาก
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
  • Download Putty
http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
  • Download PuTTYgen
http://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe
 

1. ทำการเปิดโปรแกรม PuTTYgen
- เลือก SSH-2 RSA
- กด Generate และเลื่อน เมาส์ไปมา จน Public key แสดง
- กด Save Private key ทำการเลือกที่จัดเก็บ

2. เปิดโปรแกรม Putty SSH login เข้าสู่ เซิร์ฟเวอร์
- mkdir  ~/.ssh
- cd /root/.ssh
- vi authorized_keys
นำ Public key เขียนลงในไฟล์ authorized_keys

3. เปิดโปรแกรม Putty หน้าต่างใหม่
- ตั้งค่า Host name / Port / Save Sessions ปกติ
- เลือก Connection > Data > ระบุช่อง Auto-login username: root
- เลือก Connection > SSH > Auth กด Browse เลือกไฟล์ Private key ที่ทำการ save เก็บไว้ในขั้นตอนที่ 1

 
- เมื่อทำการ login ด้วยโปรแกรม Putty ครั้งต่อไป Putty จะ login เข้าสู่เซิร์ฟเวอร์โดยอัตโนมัติ

Reference
http://www.ireallyhost.com/kb/7/
https://cs.uwaterloo.ca/cscf/howto/ssh/public_key/#putty
http://kb.norsetech.net/use-putty-to-automatically-login-a-ssh-session/
http://www.thaitux.info/book/export/html/138
 
ไอเรียลลี่โฮส
สำหรับการสนับสนุน และช่วยเหลือ
http://www.ireallyhost.com/support
ข้อกำหนดในการเผยแพร่บทความ ข่าวสาร
** บทความนี้มีลิขสิทธิ์ ไม่อนุญาติให้คัดลอก ทำซ้ำ ดัดแปลงก่อนได้รับอนุญาต **
โปรดระบุแหล่งที่มา บริษัท เอ็กซ์ตร้า คอร์ปอเรชั่น จำกัด / https://www.ireallyhost.com