SSH 설정 생성기
SSH 접속을 위한 ~/.ssh/config 항목을 만듭니다.
SSH 호스트
점프 호스트, 명시적 신원 파일(키) 및 keepalive 설정을 포함한 여러 호스트 항목을 구성합니다.
다운로드한 항목을 ~/.ssh/config에 병합하고 chmod 600 ~/.ssh/config로 권한을 제한하세요. IdentityFile에는 경로만 입력하며 개인 키는 필요하지 않습니다. Keepalive 0은 프로브를 비활성화합니다.
연결 명령어: ssh bastion
~/.ssh/config
Host bastion
HostName 192.0.2.10
User deploy
Port 22
IdentityFile ~/.ssh/id_ed25519
IdentitiesOnly yes
ServerAliveInterval 60
ServerAliveCountMax 3
9줄176바이트config