starlits@host1:~/.ssh$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/starlits/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/starlits/.ssh/id_rsa.
Your public key has been saved in /home/starlits/.ssh/id_rsa.pub.
The key fingerprint is:
57:d0:5c:a5:3a:d7:18:90:11:57:62:f4:0a:69:d8:2d starlits@twasadmin
~/.ssh 아래에 id_rsa.pub id_rsa 파일이 존재하는지 확인한다.
starlits@twasadmin:~/.ssh$ ls
authorized_keys id_rsa id_rsa.pub known_hosts