22.3. SSH commands

While the SSH Server process is running, the User can access the SSH resource commands by typing the combination Ctrl+P.

As a consequence of this action, the prompt of the SSH Server, configured in the parameter PSER, will be displayed.

The user can leave the command exchange procedure and start the data exchange by typing again the combination Ctrl+P.

The available commands for the command interpreter of the SSH resource are:

open

This command, available only on SSH client processes, allows the User to open a connection with the SSH Server process, hosting on the remote equipment identified by the specified IP.

close / exit

It requests the session to be closed.

clr

It requests the session to be closed.

22.3.1. SSH from Abilis to Abilis

To open an SSH session from an Abilis to another Abilis, the X.25 routing must be properly configured. Both Abilis must have the following X.25 routing:

Example 22.1. X.25 routing

[10:38:01] ABILIS_CPX:a r pr:3 in:ssh out:ssh cdi:* udi:ssh

COMMAND EXECUTED

[10:38:04] ABILIS_CPX:a r pr:4 in:* out:ssh cdi:* udi:ssh

COMMAND EXECUTED

[10:38:07] ABILIS_CPX:d r

---+--------+--------+---------------+---------------+------------+------------
PR |IN      |OUT     |CDI            |CDO            |UDI         |UDO
   |NEXT             |CGI            |CGO            |PIDI        |PIDO
   |                 |IPSRC          |IPDEST         |FFO
-------------------------------------------------------------------------------
0   *        Cp       *               *               CP           *
-------------------------------------------------------------------------------
1   Telnet   Telnet   *               *               TLN          *
-------------------------------------------------------------------------------
2   *        Telnet   *               *               TLN          *
-------------------------------------------------------------------------------
3   Ssh      Ssh      *               *               SSH          *
-------------------------------------------------------------------------------
4   *        Ssh      *               *               SSH          *
-------------------------------------------------------------------------------

The routing with PR:3 allows to transfer an incoming SSH session to an outgoing SSH session, while routing with PR:4 allows to transfer any incoming session to an outgoing SSH session.

Some examples follow.


Example 22.2. SSH - Example 1

[10:38:17] ABILIS_CPX:d p ssh

RES:Ssh -----------------------------------------------------------------------
Run    DESCR:Secure_Shell_Protocol_2
       LOG:NO                 MCAU:NO                ps:128
       KEEPALIVE:30           LOGIN-TOUT:60
       WDIR:C:\APP\SSH\
       - Server ---------------------------------------------------------------
       PSER:SSHS>             ser:3                  tcp-locport:22
       AC:YES                 PWD:****************   DT:15
       CDO:00                 UDO:CP                 PROFILE:NORMAL
       IPSRC:*                IPSRCLIST:#                     
       S-AUTH:PWD                                    MAXAUTH:6
       S-CIPHERS:ALL (3DES,IDEA,CAST,BF,AES128,AES192,AES256)
       - Client ---------------------------------------------------------------
       PCLI:SSHC>             cli:3                  MAXPROMPT:3
       CDI:*                  UDI:*                  
       C-AUTH:PWD
       C-CIPHERS:ALL (3DES,IDEA,CAST,BF,AES128,AES192,AES256)

[10:38:17] ABILIS_CPX:           <--- Ctrl+P

[192.168.1.1] SSHS>              <--- Ctrl+P
[10:38:50] ABILIS_CPX:

Example 22.3. SSH - Example 2

[10:38:17] ABILIS_CPX:           <--- Ctrl+P

[192.168.1.1] SSHS>clr

CLR 00 00

[192.168.1.1] SSHS>

Example 22.4. SSH - Example 3

[10:51:07] ABILIS_CPX:           <--- Ctrl+P

[192.168.1.1] SSHS>clr

CLR 00 00

[192.168.1.1] SSHS>11-ssh        <--- see Example 22.1, “X.25 routing”
COM

[192.168.1.1] SSHC>open 192.168.5.254
Trying 192.168.5.254 ... Open

Coding is 3DES

Enter user name:root
Enter password:*********         <--- wrong password
Permission denied, please try again.
Enter password:*******

COM

Abilis CPX - Ver. 8.5.1/STD - Build 4238.7 - Branch 8.5 - Abilis-ID 1800310
Monday 28/08/2017 12:19:48 (UTC+2:00)
Login:super
Password:
Logged as SUPERUSER

[10:51:59] ABILIS_CPX_2: