download from http://www.mls-software.com/opensshd.html
C:\Users\Takeshi>set HOME=%USERPROFILE%
C:\Users\Takeshi>set
...
HOME=C:\Users\Takeshi
C:\Users\Takeshi>cd c:\cf\sinatra_apps\hello_world_v2
c:\cf\sinatra_apps\hello_world_v2>ssh-keygen -t rsa -b 2048
- set env HOME=%USERPROFILE% http://stackoverflow.com/questions/23974739/failed-to-add-the-host-to-the-list-of-known-hosts-windows-prompt
c:\cf\sinatra_apps\hello_world_v2>cf-ssh -f manifest.yml
vcap@185kpo61g80:~$ ls -lha
total 2.2M
drwxr-xr-x 10 vcap vcap 4.0K 2014-10-26 14:35 .
drwxr-xr-x 6 vcap vcap 4.0K 2014-10-26 14:35 ..
drwxr-xr-x 2 vcap vcap 4.0K 2014-05-28 20:51 bin
drwxr-xr-x 2 vcap vcap 4.0K 2014-10-26 14:34 .buildpack-diagnostics
drwxr-xr-x 2 vcap vcap 4.0K 2014-10-26 13:52 .bundle
-rwxr--r-- 1 vcap vcap 176 2014-10-26 14:34 cf-ssh.yml
-rwxr--r-- 1 vcap vcap 53 2014-10-26 14:34 config.ru
-rwxr--r-- 1 vcap vcap 62 2014-10-26 14:34 Gemfile
-rwxr--r-- 1 vcap vcap 278 2014-10-26 14:34 Gemfile.lock
-rwxr--r-- 1 vcap vcap 57 2014-10-26 14:34 hello_world_2.rb
drwx------ 3 vcap vcap 4.0K 2014-05-27 21:15 include
-rw-r--r-- 1 vcap vcap 13K 2014-10-26 14:34 .java-buildpack.log
drwx------ 3 vcap vcap 4.0K 2014-05-27 21:15 lib
-rw------- 1 vcap vcap 2.1M 2014-10-26 14:35 payload.tgz
drwxr-xr-x 2 vcap vcap 4.0K 2014-10-26 14:34 .profile.d
drwxr-xr-x 2 vcap vcap 4.0K 2014-10-26 14:35 tmp
drwxr-xr-x 5 vcap vcap 4.0K 2014-10-26 14:34 vendor
vcap@185kpo61g80:~$
[0] 0:bash* "185kpo61g80" 14:35 26-Oct-14
c:\cf\sinatra_apps\hello_world_v2>cf app mori-ssh
Showing health and status for app mori-ssh in org morika-t@hogehoge.com / space
dev as morika-t@hogehoge.com...
OK
requested state: started
instances: 1/1
usage: 1G x 1 instances
urls:
state since cpu memory disk
#0 running 2014-10-26 11:35:12 PM 0.0% 14.6M of 1G 59.6M of 1G
c:\cf\sinatra_apps\hello_world_v2>cf logs --recent mori-ssh
Connected, dumping recent logs for app mori-ssh in org morika-t@hogehoge.com /
space dev as morika-t@hogehoge.com...
2014-10-26T23:34:59.23+0900 [STG] OUT Using rack 1.5.2
2014-10-26T23:34:59.23+0900 [STG] OUT Using tilt 1.4.1
2014-10-26T23:34:59.23+0900 [STG] OUT Using bundler 1.6.3
2014-10-26T23:34:59.23+0900 [STG] OUT Using rack-protection 1.5.0
2014-10-26T23:34:59.23+0900 [STG] OUT Using sinatra 1.4.3
2014-10-26T23:34:59.28+0900 [STG] OUT Your bundle is complete!
2014-10-26T23:34:59.28+0900 [STG] OUT Gems in the groups development
and test were not installed.
2014-10-26T23:34:59.28+0900 [STG] OUT It was installed into ./vendor/
bundle
2014-10-26T23:34:59.32+0900 [STG] OUT Bundle completed (0.52s)
2014-10-26T23:34:59.34+0900 [STG] OUT Cleaning up the bundler cache.
2014-10-26T23:35:00.16+0900 [STG] OUT -----> WARNINGS:
2014-10-26T23:35:00.16+0900 [STG] OUT No Procfile detected, using the
default web server (webrick)
2014-10-26T23:35:00.16+0900 [STG] OUT https://devcenter.heroku.com/ar
ticles/ruby-default-web-server
2014-10-26T23:35:04.28+0900 [STG] OUT -----> Uploading droplet (12M)
2014-10-26T23:35:09.29+0900 [DEA] OUT Starting app instance (index 0) with g
uid 119ec206-50e3-4b6a-8345-56f615d26976
2014-10-26T23:35:12.12+0900 [App/0] ERR
% Total % Received % Xferd A
verage Speed Time Time Time Current
2014-10-26T23:35:12.12+0900 [App/0] ERR Dload
Upload Total Spent Left Speed
2014-10-26T23:35:12.16+0900 [App/0] ERR 0 0 0 0 0 0 0
0 --:--:-- --:--:-- --:--:-- 0
2014-10-26T23:35:12.16+0900 [App/0] ERR 104 314 104 314 0 0 2504
0 --:--:-- --:--:-- --:--:-- 8263
2014-10-26T23:35:12.33+0900 [App/0] ERR % Total % Received % Xferd Avera
ge Speed Time Time Time Current
2014-10-26T23:35:12.33+0900 [App/0] ERR Dload
Upload Total Spent Left Speed
2014-10-26T23:35:17.85+0900 [App/0] ERR 0 0 0 0 0 0 0
0 --:--:-- --:--:-- --:--:-- 0
2014-10-26T23:35:17.85+0900 [App/0] ERR 4 9747k 4 399k 0 0 821k
0 0:00:11 --:--:-- 0:00:11 1182k
2014-10-26T23:35:17.85+0900 [App/0] ERR 23 9747k 23 2324k 0 0 1564k
0 0:00:06 0:00:01 0:00:05 1738k
2014-10-26T23:35:17.85+0900 [App/0] ERR 43 9747k 43 4227k 0 0 1713k
0 0:00:05 0:00:02 0:00:03 1822k
2014-10-26T23:35:17.85+0900 [App/0] ERR 61 9747k 61 5976k 0 0 1723k
0 0:00:05 0:00:03 0:00:02 1800k
2014-10-26T23:35:17.85+0900 [App/0] ERR 80 9747k 80 7805k 0 0 1745k
0 0:00:05 0:00:04 0:00:01 1805k
2014-10-26T23:35:17.85+0900 [App/0] ERR 96 9747k 96 9404k 0 0 1719k
0 0:00:05 0:00:05 --:--:-- 1807k
2014-10-26T23:35:17.85+0900 [App/0] ERR 100 9747k 100 9747k 0 0 1718k
0 0:00:05 0:00:05 --:--:-- 1772k
2014-10-26T23:35:17.87+0900 [App/0] OUT
-----> Extracting payload...
2014-10-26T23:35:18.06+0900 [App/0] OUT bin/
2014-10-26T23:35:18.06+0900 [App/0] OUT bin/event_rpcgen.py
2014-10-26T23:35:18.06+0900 [App/0] OUT bin/tmate
2014-10-26T23:35:18.06+0900 [App/0] OUT include/
2014-10-26T23:35:18.06+0900 [App/0] OUT include/evdns.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/
2014-10-26T23:35:18.06+0900 [App/0] OUT include/evhttp.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/evrpc.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/evutil.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/buffer.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/buffer_compat.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/bufferevent.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/bufferevent_compat.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/bufferevent_ssl.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/bufferevent_struct.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/dns.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/dns_compat.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/dns_struct.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/event-config.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/event.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/event_compat.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/event_struct.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/http.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/http_compat.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/http_struct.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/keyvalq_struct.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/listener.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/rpc.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/rpc_compat.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/rpc_struct.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/tag.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/tag_compat.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/thread.h
2014-10-26T23:35:18.06+0900 [App/0] OUT include/event2/util.h
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent-2.0.so.5
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent-2.0.so.5.1.9
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent.a
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent.la
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent.so
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_core-2.0.so.5
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_core-2.0.so.5.1.9
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_core.a
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_core.la
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_core.so
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_extra-2.0.so.5
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_extra-2.0.so.5.1.9
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_extra.a
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_extra.la
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_extra.so
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_openssl-2.0.so.5
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_openssl-2.0.so.5.1.9
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_openssl.a
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_openssl.la
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_openssl.so
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_pthreads-2.0.so.5
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_pthreads-2.0.so.5.1.9
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_pthreads.a
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_pthreads.la
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/libevent_pthreads.so
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/pkgconfig/
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/pkgconfig/libevent.pc
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/pkgconfig/libevent_openssl.pc
2014-10-26T23:35:18.06+0900 [App/0] OUT lib/pkgconfig/libevent_pthreads.pc
2014-10-26T23:35:18.06+0900 [App/0] OUT -----> Fixing permissions
2014-10-26T23:35:18.07+0900 [App/0] OUT -----> Setting env
2014-10-26T23:35:18.07+0900 [App/0] OUT -----> Generating SSH key
2014-10-26T23:35:18.58+0900 [App/0] OUT -----> Starting tmate...
2014-10-26T23:35:19.16+0900 [App/0] ERR 2014/10/26 14:35:19 =====> Du6P9uyclob
8Mls67583gIMwb@sf.tmate.io
https://github.com/cloudfoundry/cli/releases/tag/v6.6.2
C:\Users\Takeshi>cf -v
cf version 6.6.2-0c953cf-2014-10-17T11:12:38+00:00
https://github.com/cloudfoundry-community/cf-ssh/releas
C:\Users\Takeshi>cf-ssh -v
cf-ssh version 0.0.0