/
ssh 원격 세션 종료하기

ssh 원격 세션 종료하기

telnet 사용시 Ctrl-] 를 누르면 프롬프트로 나오며 여기에서 여러 가지 명령어를 입력할 수 있습니다.

ssh 는 기본 escape character 는 ~ 이며 이를 활용하여 여러 가지 명령어를 내릴 수 있습니다.


Supported escape sequences:
  ~.  - terminate session
  ~B  - send a BREAK to the remote system
  ~R  - Request rekey (SSH protocol 2 only)
  ~#  - list forwarded connections
  ~?  - this message
  ~~  - send the escape character by typing it twice
(Note that escapes are only recognized immediately after newline.)

예로 ssh 로 원격지 연결시 timeout 등으로 세션이 끊어졌는데 프롬프트로 돌아오지 않을 경우 세션 종료 escape sequence 인 다음 키를 순서대로 누르면 세션이 강제 종료됩니다.

  • Enter ~  . (엔터, 틸드, 쩜)


Ref

Related content

SecureCRT SSH Port forwarding 으로 원격 서버 연결하기
SecureCRT SSH Port forwarding 으로 원격 서버 연결하기
More like this
~/.ssh/authorized_keys 에 public key 를 추가했으나 자동 로그인이 안 됨
~/.ssh/authorized_keys 에 public key 를 추가했으나 자동 로그인이 안 됨
More like this
ssh 로 포트 포워딩(port forwarding)해서 Proxy 서버로 사용하기
ssh 로 포트 포워딩(port forwarding)해서 Proxy 서버로 사용하기
More like this
ssh 개인키 암호 변경/해제하기(change ssh private key pass phrase)
ssh 개인키 암호 변경/해제하기(change ssh private key pass phrase)
More like this
Bitbucket SSH Key 추가시 "Someone has already registered that SSH key" 에러
Bitbucket SSH Key 추가시 "Someone has already registered that SSH key" 에러
More like this
ssh-agent 가 private key 를 캐싱할 수 있도록 등록해 주는 ssh-add 명령어 사용법
ssh-agent 가 private key 를 캐싱할 수 있도록 등록해 주는 ssh-add 명령어 사용법
More like this