Score:0

SSH change default terminal to other program on host

jp flag

So, I'm creating a system, using openssh, and I would like to have clients connected to host switch to different program than shell automatically.

ie. let's say that I have a program myapp, that uses text interface. I want to configure the openssh, so when a client connects, they are welcomed with myapp automatically, and they don't use the shell at all.

Is there a way to do this?

Score:0
jp flag

Ok, so I've found the answer - what I wanted to do, was to change the users' default shell.

You can do it, for example, when creating users, by:

useradd --shell= *path to myapp* user

Or using:

chsh -s *path to myapp* user
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.