로컬 컴퓨터에서 서버에 연결 - SSH [닫기]

로컬 컴퓨터에서 서버에 연결 - SSH [닫기]

제가 사용하는 프로그램은 다음과 같습니다.

$ 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

관련 정보