How can I add support for perl shell?

0 votes
asked Jul 30 by ioan.crisan (420 points)
edited Jul 30 by ioan.crisan

When connecting over SSH to a Linux server, I need to set the current shell interpreter to perl. How can I do it?

commented Jul 30 by Lukas Matyska (55,470 points)
I am sorry, I do not understand what exactly you want to achieve using Rebex components.

Is your question related to Rebex SSH client or server?

For Rebex SSH client - shell interpreter is related to the server, so you should ask at the server side for help.

For Rebex SSH server - shell interpreter cannot be changed. The server has its own simple shell, which supports only couple of commands (most of them was added just to enable SCP support). You can write your own interpreter, but it would require a lot of work.
commented Jul 30 by ioan.crisan (420 points)
edited Jul 30 by ioan.crisan
I have a SSH client connecting to a Linux machine. After successful authentication, bash is started by default for accepting commands. Is there a possibility to have perl instead?

1 Answer

+1 vote
answered Jul 30 by Lukas Matyska (55,470 points)
selected Jul 30 by ioan.crisan
 
Best answer

It seems that your question is not related to Rebex components.

You want to set up your default shell on your server.

Please, check this topic, it seems it describes what you need: https://stackoverflow.com/questions/13046192/changing-default-shell-in-linux

commented Jul 30 by ioan.crisan (420 points)
Actually I do not want to change the default shell on the server, I want to enable another one than the default. Is it possible using the Rebex components?
commented Jul 30 by ioan.crisan (420 points)
edited Jul 30 by ioan.crisan
I mean some kind of Options.Shell = "perl"
commented Jul 30 by Lukas Matyska (55,470 points)
No, there is no such option like Options.Shell = "pearl".

There is no shell interpreter on the client side. The client only send user-keyboard-input to the server and read the server responses. How the user-keyboard-input is interpreted on the server is the matter of the server not the client.
...