본문으로 바로 가기
kitlocal.dev

SSH 설정 생성기

로컬에서 실행

100% 브라우저에서 처리됩니다. 입력과 출력이 기기 밖으로 나가지 않습니다.

SSH 접속을 위한 ~/.ssh/config 항목을 만듭니다.

SSH 호스트

점프 호스트, 명시적 신원 파일(키) 및 keepalive 설정을 포함한 여러 호스트 항목을 구성합니다.

호스트 1

다운로드한 항목을 ~/.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