Linode 및 Siteground에 ssh
연결, 암호 가있는 여러 원격 서버가 있습니다. Windows와 Putty를 사용하여 원격 서버에 연결했지만 지금은
나는 Ubuntu 18.04를 사용하기 시작했고 openssh-server를 설정했지만 이제 시도 할 때 ssh [email protected]
오류 Permission Denied (Public key)가 표시되므로 추측하고 있습니다.
로컬 컴퓨터의 원격 서버에서 개인 키를 복사해야하는데 키를 정확히 어디에 배치해야하는지 그리고 연결할 수 있도록 추가하는 방법을 잘 모르겠습니다.
First don't put your private key on the remote server. Any one compromising this server will have all access that you have.
Now that is out of the way. You have two options.
~/.ssh/authorized_keys
, one per line, so append it, don't overwrite the old one (or use ssh-copy-id
).~/.ssh/
mine is in file id_rsa
.이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다