패스워드 없이 ssh 접속하는 방법
### 클라이언트 서버에서 ssh key 생성
디폴트 값으로 엔터 3회 처리
```bash
$ ~/.ssh$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/var/lib/test1/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
...
```
~/.ssh에 id_dsa와 id_dsa.pub 파일이 생성되었는지 확인
### 원격지 서버에 id_rsa.pub 복사
```bash
# ssh-coy-id 원격지id@원격지IP
$ ~/.ssh$ ssh-copy-id test2@192.168.0.200
```
### 접속이 잘 안 될 경우
- 원격지 서버의 .ssh 디렉터리와 authorized_keys 파일의 권한을 확인하거나 .ssh 파일을 삭제하여 초기화
- 클라이언트 서버의 ~/.ssh/know_hosts에 등록된 정보를 초기화