ssh-copy-id가 경로를 이상하게 잡을 때가 있다. 그럴땐 -i (identify) 옵션을 주면 된다.
ssh-copy-id를 썼더니 이상하게 /home/user/.pub가 있는지 검사한다. 왜 그런지는 내 서버가 아니라 잘 모르겠다.
사용법은 다음과 같다
ssh-copy-id -i 공개키경로 user@hostname
ex) ssh-copy-id -i ~/.ssh/id_rsa.pub user@123.123.123.123
어렵다
리눅스
반응형
'OS > Linux' 카테고리의 다른 글
리눅스 메모리 사용량 확인법 (free 커맨드) (0) | 2020.07.24 |
---|---|
JPS 이용해서 자바 프로세스 킬하는 법 (0) | 2017.01.30 |
vi case insensitive string search (0) | 2017.01.09 |
The program 'make' is currently not installed (0) | 2016.08.22 |
shell script 변수 command not found (0) | 2016.08.17 |