모든 도구
무료

검색 및 인쇄 가능한 SSH 레퍼런스 — 연결, 키, 설정, 터널링, SCP/SFTP, 에이전트 포워딩. 무료.

Connecting

10
ssh user@host
Connect as user to host
ssh -p 2222 user@host
Connect on a non-default port
ssh -i ~/.ssh/id_ed25519 user@host
Use a specific identity key
ssh user@host 'uptime'
Run a single remote command and exit
ssh -v user@host
Verbose output for debugging (-vvv for more)
ssh -t user@host 'sudo -i'
Force a pseudo-terminal (for interactive cmds)
ssh -X user@host
Enable X11 forwarding
ssh -o ServerAliveInterval=60 user@host
Send keepalives to avoid timeouts
exit / Ctrl-D
Close the remote session
~.
Force-disconnect a frozen session

Key generation

8
ssh-keygen -t ed25519 -C 'you@example.com'
Generate a modern Ed25519 key pair
ssh-keygen -t rsa -b 4096
Generate a 4096-bit RSA key pair
ssh-keygen -t ed25519 -f ~/.ssh/work
Write the key to a specific file
ssh-keygen -p -f ~/.ssh/id_ed25519
Change the passphrase of an existing key
ssh-keygen -y -f ~/.ssh/id_ed25519
Print the public key from a private key
ssh-keygen -l -f ~/.ssh/id_ed25519.pub
Show a key fingerprint
ssh-keygen -lv -f ~/.ssh/id_ed25519.pub
Show the fingerprint randomart image
ssh-keygen -R host
Remove a host key from known_hosts

Installing public keys

7
ssh-copy-id user@host
Copy your default public key to the server
ssh-copy-id -i ~/.ssh/work.pub user@host
Copy a specific public key
ssh-copy-id -p 2222 user@host
Copy the key over a custom port
cat ~/.ssh/id_ed25519.pub | ssh user@host 'cat >> ~/.ssh/authorized_keys'
Manual copy when ssh-copy-id is missing
chmod 700 ~/.ssh
Correct permissions on the .ssh directory
chmod 600 ~/.ssh/authorized_keys
Correct permissions on authorized_keys
pbcopy < ~/.ssh/id_ed25519.pub
Copy public key to clipboard (macOS)

SSH config (~/.ssh/config)

10
Host myserver
Alias: connect with `ssh myserver`
HostName 203.0.113.10
Real hostname or IP for the alias
User deploy
Default username for this host
Port 2222
Default port for this host
IdentityFile ~/.ssh/work
Key to use for this host
IdentitiesOnly yes
Only offer the listed key
ForwardAgent yes
Forward the SSH agent to this host
Host *.example.com
Wildcard match for a domain
Host *
Global defaults for all hosts
ServerAliveInterval 60
Keepalive interval for all hosts

Port forwarding / tunneling

7
ssh -L 8080:localhost:80 user@host
Local: reach host:80 via local 8080
ssh -L 5432:db.internal:5432 user@host
Local forward to a third host through the server
ssh -R 9000:localhost:3000 user@host
Remote: expose your local 3000 as host:9000
ssh -D 1080 user@host
Dynamic: SOCKS proxy on local port 1080
ssh -N -L 8080:localhost:80 user@host
Tunnel only, do not run a remote shell
ssh -f -N -L 8080:localhost:80 user@host
Open the tunnel in the background
ssh -g -L 8080:localhost:80 user@host
Allow other hosts to use the local forward

Jump hosts / bastions

5
ssh -J jump@bastion user@target
Hop through a bastion to reach the target
ssh -J h1,h2 user@target
Chain multiple jump hosts
ProxyJump bastion
Config equivalent of -J
ProxyCommand ssh -W %h:%p bastion
Older ProxyCommand-based jump
ssh -o ProxyJump=bastion user@target
Inline ProxyJump option

File transfer (scp & sftp)

7
scp file user@host:/path/
Copy a local file to the server
scp user@host:/path/file .
Copy a remote file to the current dir
scp -r dir/ user@host:/path/
Recursively copy a directory
scp -P 2222 file user@host:/path/
Copy over a custom port (note capital -P)
sftp user@host
Start an interactive SFTP session
put localfile / get remotefile
Upload / download inside SFTP
rsync -avz -e ssh dir/ user@host:/path/
Efficient sync over SSH (resumable)

ssh-agent & forwarding

7
eval "$(ssh-agent -s)"
Start the agent in the current shell
ssh-add ~/.ssh/id_ed25519
Add a key to the agent
ssh-add -l
List keys loaded in the agent
ssh-add -D
Remove all keys from the agent
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
Store passphrase in macOS keychain
ssh -A user@host
Forward the agent for this connection
ForwardAgent yes
Config equivalent of agent forwarding

“:q”와 일치하는 항목이 없습니다.


SSH 치트 시트 소개

이 SSH 치트시트는 원격 서버 작업에 필요한 명령어와 설정을 모아 놓았습니다: 접속, 키 생성, 공개 키 설치, ~/.ssh/config 파일, 포트 포워딩과 터널링, 점프 호스트와 배스천, scp와 sftp를 이용한 파일 전송, 에이전트 포워딩을 포함한 ssh-agent까지 다룹니다.

SSH 구문은 어렴풋이 기억하기 쉽습니다 — 그 터널에는 -L을 써야 할까, -R을 써야 할까? 최신 키를 만드는 ssh-keygen 플래그는 무엇일까? ProxyJump는 어떻게 동작할까? 여기 각 행은 정확한 명령어와 한 줄 설명으로 그런 질문에 답합니다.

이 시트는 무료이며 전적으로 브라우저에서 렌더링됩니다. 검색으로 실시간 필터링하고, 고정된 목차로 섹션 이동하고, 클릭 한 번으로 명령어를 복사하고, SSH가 정확히 고장 난 순간을 위해 인쇄할 수 있습니다.

SSH 치트 시트 사용 방법

  1. 시트를 열어 접속과 키 생성부터 ssh-agent 및 포워딩까지 섹션을 훑어보세요.
  2. tunnel, scp, ProxyJump 같은 용어를 검색해 명령어를 실시간으로 필터링하세요.
  3. 특정 레시피가 필요할 때 고정된 사이드바를 통해 포트 포워딩/터널링 또는 SSH config로 이동하세요.
  4. 명령어나 복사 아이콘을 클릭해 복사한 다음 호스트와 포트 자리표시자를 바꾸세요.
  5. 서버 비상 상황을 위해 시트를 인쇄해 오프라인 사본을 보관하세요.

자주 묻는 질문

여덟 개 섹션입니다: 접속, 키 생성, 공개 키 설치, ~/.ssh/config 파일, 포트 포워딩과 터널링, 점프 호스트와 배스천, scp와 sftp를 이용한 파일 전송, 포워딩을 포함한 ssh-agent입니다.

네. 터널링 섹션에서는 -L과 -R 형식을 나란히 보여주며 각각 어느 방향으로 포워딩하는지 설명하고, 동적 포워딩도 다룹니다 — SSH에서 가장 혼동되는 부분 중 하나입니다.

네. ssh-keygen으로 키를 생성하는 섹션과 서버에 공개 키를 설치하는 섹션이 있으며, 키를 불러오고 포워딩하는 에이전트 명령어도 함께 다룹니다.

네. 아무 명령어나 해당 행의 복사 아이콘을 클릭하면 클립보드에 복사되어 터미널에 붙여넣고 호스트를 바꿀 수 있습니다.

네, 무료이며 계정이 필요 없고 오프라인 사용을 위해 깔끔하게 인쇄됩니다.


인기 검색어
ssh cheat sheet ssh commands list ssh keygen command ssh config file example ssh port forwarding ssh copy id scp and sftp commands ssh jump host
도움이 필요하신가요?
이 도구에서 문제를 발견하셨나요? 저희 팀에 알려주세요.
문제 신고

이 무료 도구를 귀하의 웹사이트에 추가하세요 — 아래 코드를 복사하여 붙여넣으세요.