SSH

ทำให้ ssh เข้าเครื่องปลายทาง โดยไม่ต้องใช้รหัสผ่าน - เราจะใช้กรณีนี้ในการเขียนสคริปต์ให้ระบบทำงานอัตโนมัติ เพื่อล็อคอินเข้าเครื่องอื่นโดยไม่ต้องอยู่หน้าจอเพื่อใส่รหัสผ่าน

กรณีตัวอย่าง ต้องการใช้เครื่อง A เพื่อเข้าไปทำงานในเครื่อง B โดยไม่ต้องใช้รหัสผ่าน

- เข้าเครื่อง A แล้วสร้าง Key

somnuk@Machine-A:~$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/somnuk/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/somnuk/.ssh/id_rsa
Your public key has been saved in /home/somnuk/.ssh/id_rsa.pub