![로컬 컴퓨터에서 서버에 연결 - SSH [닫기]](https://linux55.com/image/100337/%EB%A1%9C%EC%BB%AC%20%EC%BB%B4%ED%93%A8%ED%84%B0%EC%97%90%EC%84%9C%20%EC%84%9C%EB%B2%84%EC%97%90%20%EC%97%B0%EA%B2%B0%20-%20SSH%20%5B%EB%8B%AB%EA%B8%B0%5D.png)
제가 사용하는 프로그램은 다음과 같습니다.
$ cd .ssh
bash: cd: .ssh: No such file or directory
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_rsa):
- ENTER -
Enter passphrase (empty for no passphrase):
- ENTER -
Enter same passphrase again:
- ENTER -
Your identification has been saved in /home/user/.ssh/id_rsa.
Your public key has been saved in /home/user/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256: "hugecode" user@user
The key's randomart image is:
"lots of characters"
$ cd .ssh
$ sudo nano config
Host user IP addr
HostName IP addr
User user
PreferredAuthentications publickey
IdentfyFile /home/user/.ssh/id_rsa
Host server IP
HostName IP
User server
Port no.of port
- Close config -
$ ssh server
/home/user/.ssh/config: line 5: Bad configuration option: identfyfile
/home/user/.ssh/config: terminating, 1 bad configuration options
해결책이 필요해요.
답변1
"identity" 철자가 틀렸어요나타이 파일:
/home/user/.ssh/config: 5행: 잘못된 구성 옵션: identfyfile