ssh into cache on windows?

758 views
Skip to first unread message

granpaZ

unread,
Feb 20, 2009, 3:45:49 PM2/20/09
to intersystems.public.cache
On a cache installation under Linux one can connect to the machine via
putty (ssh port 22).

Is there a comparable way to reach a cache command line on a Windows
server? (Win2003 with sshd running)

thanks,
johnleoz

Fernando Telesca

unread,
Feb 20, 2009, 11:59:38 PM2/20/09
to intersystems.public.cache
You mean putty is not working for windows ?

Rgds,

Fernando

kesav

unread,
Feb 21, 2009, 1:53:22 AM2/21/09
to intersystems.public.cache
You can use cache terminal to connect to cache server running on any
OS. Just install cache client components and configure the preferred
servers then you can open the cterm to any of the cache server you are
running.

-kesav

JohnLeo Zimmer

unread,
Feb 21, 2009, 7:41:44 AM2/21/09
to intersystems.public.cache
Seeking to clarify my question:

A.) I have sshd installed and running on the Windows2003 server.

And I can reach the server with putty (SSH port 22) which puts me at the prompt:
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\johnleo>

B.) With TELNET
(both from putty and with the Cache Cube Terminal)
I am taken right to the Cache prompt

Username: johnleo
Password: ********
USER>

So Win2003 has been set to tie TELNET to Cache'.
1. ?? where is that set?

2. ?? can SSH be similarly tied to Cache'?
3. ?? and/or
can Cache' logon be invoked from the Windows prompt?

Thanks,
Johnleoz

Fernando Telesca

unread,
Feb 21, 2009, 11:19:22 AM2/21/09
to intersystems.public.cache
On windows prompt:

- To list Caché instances:

C:\Cachesys\Bin>ccontrol list

- To invoke Caché terminal:

C:\Cachesys\Bin>ctrminal <INSTANCE>

Rgds,

Fernando

Fernando Telesca

unread,
Feb 21, 2009, 11:33:12 AM2/21/09
to intersystems.public.cache
I forgot to mention about telnet being tied. That´s because Caché has
an embedded telnet server. You can set its port at:

Management Portal > Configuration > Advanced Config > Telnet

Rgds,

Fernando
> > Johnleoz- Ocultar texto entre aspas -
>
> - Mostrar texto entre aspas -

masl...@gmail.com

unread,
Feb 25, 2009, 8:03:01 AM2/25/09
to intersystems.public.cache
Hi,

Cache for Windows (CfW) is equipped with its own telnet demon
(ctelnetd.exe) rather than tied to some external one. As the details
of this coupling as not documented, it seems to be difficult task to
replace ctelnetd.exe with, say, sshd.exe.
Nevertheless, its possible to ssh into CfW. Some howto:
1. let Cache be installed into c:\intersystems\cache\
than:
2. create the file (I named it "cache_login.cmd"):
@echo off
c:\intersystems\cache\bin\cache -s c:\intersystems\cache\mgr\

3. and place it into Cygwin user's home directory.

4. in /etc/passwd file: replace the default shell (/bin/bash) with the
full path to the file mentioned above: /home/<username>/
cache_login.cmd
In my case the whole line for user Alex now looks like this:
...
alex:unused_by_nt/2000/xp:1008:513:alex,U-MYDOMAIN
\alex,S-1-5-21-1237067124-1521749626-317593308-1008:/home/Alex:/home/
Alex/cache_login.cmd
...
Now, if Cygwin sshd is running and user Alex will log in, it will be
directed to Cache prompt. He will be authenticated with
%Service_Console service (as he'd enter Cache locally using Cache
Terminal). Logging out Cache (e.g. issuing HALT command) would close
ssh session as well.
If you need to allow ssh login for several users, just repeat steps
3-4 for each of them.

HTH,
Alex

Rich Taylor

unread,
Feb 25, 2009, 1:22:35 PM2/25/09
to intersystems...@googlegroups.com
Have you tried defining a remote command on the Putty session? This is done in the setup under SSH. You could put in the terminal command someone else mentioned.


I have not done this with Windows, but it has worked for me with Linux as the server.


Rich Taylor
Sales Engineer
InterSystems Corporation
Office: 443-340-8614
FAX: 440-815-5805

InterSystems DEVCON2009
Unique Technology, Unique Conference | March 22 - 25, 2009, Arizona Biltmore, Phoenix, AZ ("one of the top 50 US resorts" - Conde Nast Traveler)

"Early bird" registration is a better bargain than ever - saving you $300.

masl...@gmail.com

unread,
Feb 26, 2009, 3:20:44 AM2/26/09
to intersystems.public.cache
No problems with Linux where such powerful command as csession is
available. Similar Windows command line tool (css.exe) doesn't work in
Cygwin environment. Continuing Windows issue, another option is to add
a couple of commands to $home/.bashrc file:

cd /cygdrive/c/intersystems/cache/bin
./cache -s ../mgr

On Feb 25, 9:22 pm, "Rich Taylor" <Rich.Tay...@intersystems.com>
wrote:
> johnleoz- Hide quoted text -
>
> - Show quoted text -

granpaZ

unread,
Feb 27, 2009, 8:58:47 AM2/27/09
to intersystems.public.cache
I much prefer Linux, even for Cache. Maybe just because I understand
the utilities a little better, etc. I have been giving myself a real
stress test by attempting to install VistA under Cache... on both
Linux and Cache. So I have not yet worked through the excellent
suggestions in this thread.

Thanks to all, and I will get back to this part after solving some
more pressing difficulties that I have created for myself.

regards,
jlz
Reply all
Reply to author
Forward
0 new messages