Cf ssh

1 개요[ | ]

cf ssh
  • 앱 컨테이너 인스턴트에 대해 ssh 접속을 하는 cf 명령어
  • Diego기반만 가능[1]
  • 2222 포트 사용
→ 아웃바운드 2222포트가 막힌 경우 SYN SENT 상태에서 중단됨
root@zetawiki:~# cf apps
Getting apps in org zeta / space development as testuser@example.com...
OK

name        requested state   instances   memory   disk   urls
node-talk   started           1/1         32M      1G     node-talk-atonal-maiolica.cfapps.io
root@zetawiki:~# cf ssh-enabled node-talk
ssh support is enabled for 'node-talk'
root@zetawiki:~# cf ssh node-talk
vcap@f5661c56-75f2-4823-44e0-b8e48e9f42a2:~$ ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 02:11 ?        00:00:00 /proc/self/exe init
vcap        14     0  0 02:11 ?        00:00:00 /tmp/lifecycle/diego-sshd --allowedKeyExchanges= --address=0.0.0.0:2222 --allowUnauthenticatedClients=false --inheritDaemonEnv=true --allowed
vcap        19     0  0 02:11 ?        00:00:00 node server.js
vcap       280    14  0 02:19 pts/0    00:00:00 /bin/bash
vcap       290   280  0 02:20 pts/0    00:00:00 ps -ef

2 같이 보기[ | ]

3 참고[ | ]

  1. SSH access can only be configured for Diego-based Cloud Foundry architectures. It is not supported for DEA-based architectures. https://docs.cloudfoundry.org/running/config-ssh.html
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}