Simcenter STAR-CCM+ How to use ssh with Simcenter STAR-CCM+ to connect the GUI client to the server

2023-11-02T04:46:57.000-0400
Simcenter STAR-CCM+ Simcenter STAR-CCM+ Virtual Reality Teamcenter Share Simcenter STAR-CCM+ Viewer Simcenter STAR-CCM+ Application Specific Solutions

Summary

This article describes how to create a password free ssh connection to then use ssh with Simcenter STAR-CCM+.


Details

Let's first look at what rsh and ssh are, two communication protocols between machines.
  • rsh stands for remote shell, it is a command line computer program that can execute shell commands as another user, and on another computer across a computer network.
  • ssh stands for secure shell, it is a cryptographic network protocol for secure data communication, remote command-line login, remote command execution, and other secure network services between two networked computers. It differs mainly from rsh in that it is secure. 
The following description applies to a Linux-to-Linux environment. For a different combination of Operating Systems, contact your local support team for assistance or check out How to use PuTTy to connect a Windows client to Linux server
To use ssh, the ssh daemon must run on the machine to connect remotely to said machine. Almost all the major Linux distributions have an ssh package, which can be installed. For the local machine, an ssh client is required. A local shell can then be opened and the command ssh hostname entered to log in to the remote machine.

A password is usually required to connect to this remote machine. If the machines are connected in an internal network, it is possible to make the connection password-free or passwordless. To set this up, you can create an internal key for ssh to use while connecting with other machines. To create the internal key, follow the steps outlined in How to setup password less ssh.
 
You can then use ssh with Simcenter STAR-CCM+. To run a job with Simcenter STAR-CCM+, you can choose the type of connection protocol through the command line option behind the -rsh command-line option flag:
starccm+ -server -rsh ssh -np 4 mysim.sim
You can also start the Simcenter STAR-CCM+ server process on the remote machine before starting a local Simcenter STAR-CCM+ client and connecting to the Simcenter STAR-CCM+ server process on the remote machine, for example:
ssh REMOTEHOST -n  /install/STARCCM/17.02.007_01/STAR-CCM+17.02.007/star/bin/starccm+ -server

where REMOTEHOST and actual installation directory can of course vary.

Useful user guide sections:
  • Client-Server Setup > Client-Server Connections
Useful links about rsh and ssh

KB Article ID# KB000033557_EN_US

Contents

SummaryDetails

Associated Components

Design Manager Electronics Cooling In-Cylinder (STAR-ICE) Job Manager Simcenter STAR-CCM+