Home Applications SSH-for-IRIS-container


This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
1 reviews
IPM installs
Pull requests
Example how you can add SSH server to a standard IRIS docker image

What's new in this version

clean repo

Why SSH ?

If you do not have direct access to the server that runs your IRIS Docker container
you still may require access to the container outside “iris session” or “WebTerminal”.
With ans SSH terminal (PuTTY, KiTTY,.. ) you get access inside Docker, and then, depending
on your needs you run “iris session iris” or display/manipulate files directly.

This is not meant to be the default access for average application users in   
production environments but exclusive for System Management, Support and Development. 

This project is based on templates for InterSystems ObjectScript Github repository.
There a few siginifcant extensions:

  • docker-compose.yaml exposes port 22 for SSH
  • Dockerfile installs SSH server and prepares Server start. You may observe
    a significant bunch up updates as the underlying Ubuntu is not very fresh


Make sure you have git and Docker desktop installed.


Clone/git pull the repo into any local directory

$ git clone https://github.com/rcemper/SSH-for-IRIS-container.git   

Open the terminal in this directory and run:

$ docker-compose build

Run and Init the IRIS container with

$ docker-compose up -d 

Once IRIS container is up you need to start the SSH server:

docker-compose exec -u root iris /sshstart.sh
 * Starting OpenBSD Secure Shell server sshd 
 * sshd is running

How to Test it:

If you didn’t assign a fixed port to projected container port 22 you may run

$ docker ps
e37392a1c7c3   ssh-for-iris-container   "/bin/sh -c '/iris-m…"   2 hours ago   Up 2 hours (unhealthy)   
2188/tcp, 54773/tcp,>22/tcp,>1972/tcp,>52773/tcp,>53773/tcp   

And see the assigned_port for port 22 in container>22/tcp,(here it’s 41022).
Next, you connect with PuTTY over SSH to server:assigned_port
Log in as irisowner + the PW of your choice and you are in your container.

This is similar as with docker-compose exec iris sh in a local docker instance.


login as: irisowner
irisowner@localhost's password:
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 5.4.72-microsoft-standard-WSL2 x86_64)
  • Documentation: https://help.ubuntu.com
  • Management: https://landscape.canonical.com
  • Support: https://ubuntu.com/advantage

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.
Last login: Sat Apr 17 11:10:56 2021 from
$ iris view

Instance 'IRIS' (default)
directory: /usr/irissys
versionid: 2020.4.0.524.0com
datadir: /usr/irissys
conf file: iris.cpf (SuperServer port = 1972, WebServer = 52773)
status: running, since Sat Apr 17 09:12:38 2021
state: ok
product: InterSystems IRIS

$ iris session iris -U "%SYS"
Node: e37392a1c7c3, Instance: IRIS
ssh-for-iris-container 0.0.1
webterminal 4.9.2
zpm 0.2.14
%SYS>d ^zSSH
This is a placeholder for testing
 if you see it, then the installation was OK

Article in DC

Demo Video

Read more
Made with
zpm install ssh-for-iris-container download archive
0.0.305 Nov, 2023
ObjectScript quality test
Technology Example
Works with
InterSystems IRIS
First published
17 Apr, 2021
Last checked by moderator
27 Jun, 2023Works