※ 리눅스 자동원격접속 실행 방법
]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/lee/.ssh/id_rsa):Enter
Created directory '/home/lee/.ssh'.
Enter passphrase (empty for no passphrase):Enter
Enter same passphrase again:Enter
Your identification has been saved in /home/lee/.ssh/id_rsa.
Your public key has been saved in /home/lee/.ssh/id_rsa.pub.
The key fingerprint is:
0c:d2:f0:1f:8f:32:61:cd:95:f4:08:99:cd:ba:d0:f5 lee@ocj.coj1778.com
]$ ssh-copy-id -i /home/lee/.ssh/id_rsa.pub kim@172.16.5.99
password:암호입력 ---------------
└ 변경하여 여러개 생성 가능
]$ ssh kim@172.16.5.99 => 암호 입력하지 않고 자동 로그인
또는
]$ touch aaa.txt
]$ scp aaa.txt kim@172.16.5.99:/home/kim => 암호 입력하지 않고 파일 전송