How to Telnet and SSH to the Nodegrid Serial Ports

How to Telnet and SSH to the Nodegrid Serial Ports

Note: by default, Telnet access is turned off with your Nodegrid Serial Console. Authorized users can use Telnet or SSH to connect directly to the console of a managed device if all of the following are true:

  • Telnet / SSH protocol is enabled under Security
  • Telnet / SSH protocol is configured for the port
  • Telnet / SSH client available and enabled on the computer from which you are opening a connection

To connect successfully to the Nodegrid Serial Console's serial port, you need:

  • the hostname (i.e, SFO-DC7-R33-NSCT96) or IP address (i.e, 110.0.0.200) of the Nodegrid Serial Console.
  • a username configured to access the managed device serial port (or none, if authentication on the serial port is skipped)
  • either the Device Name (i.e., SFO-DC7-R33-P3), Port name (i.e., ttyS3), TCP Port (i.e., 7003) or IP port alias (i.e., 110.0.0.10).

 

How to Telnet to a device through a serial port 

A - To use a Telnet client, such as Putty, type the above information into client.

1)  Connection Type: Telnet

     Host Name (or IP Address): [Hostname | IP Address]

     Port: [TCP_Port_Alias] 

     loginusername

 

2)  Connection Type: Telnet

     Host Name (or IP Address): [Hostname | IP Address]

     Port: 23

     loginusername:TCP_Port_Alias    - OR -

     loginusername:port_name          - OR -

     loginusername:device_name

 

3)  Connection Type: Telnet

     Host Name (or IP Address): [Hostname | IP Address]

     Port: 23 

     loginusername

     [user@NSC-hostname /]# cd /access/<device_name> 

     [user@NSC-hostname /]# connect

 

 

Examples:

1)  Connection Type: Telnet

     Host Name (or IP Address): SFO-DC7-R33-NSCT96

     Port: 7003

     login: john

 

2)  Connection Type: Telnet

     Host Name (or IP Address): SFO-DC7-R33-NSCT96

     Port: 23

     login: john:7003

     login: john:ttyS3

     login: john:SFO-DC7-R33-P3 

 

3)  Connection Type: Telnet

     Host Name (or IP Address): 110.0.0.200

     Port: 23

     loginjohn

     [user@NSC-hostname /]# cd /access/SFO-DC7-R33-P3

     [user@NSC-hostname /]# connect

 

B - To Telnet from a shell, type any of the following commands:

1) # telnet [hostname IP_address]

     login:username:[device_name | port_name | TCP_Port_Alias]

2) # telnet [hostname | IP_addressTCP_Port_Alias

    login:username

3) # telnet IP_Port_Alias

    login:username

4) # telnet [hostname IP_address]

    login: username

    [user@NSC-hostname /]# cd /access/<device_name>

    [user@NSC-hostname /]# connect

 

Examples:

1) # telnet 110.0.0.200

    login: john:SFO-DC7-R33-P3  -OR-  login: john:ttyS3 -OR-  login: john:7003

2) # telnet SFO-DC7-R33-NSCT96 7003

    login: john

3) # telnet 110.0.0.10

    login: john

4) # telnet 110.0.0.200

    login: john

    [user@NSC-hostname /]# cd /access/SFO-DC7-R33-P3 

    [user@NSC-hostname /]# connect

 

How to close your Telnet session

Type the Telnet hotkey for your client. The default hotkey for telnet from shell is CTRL ] + q to quit, or in the telnet session enter ^Ec. and then type exit at the CLI prompt.

Note: for the CLI text session hotkey – press and hold CTRL key plus E key; release them; then hit C and then . (dot)

 

How to SSH to a device through a serial port 

A - To use an SSH client, such as Putty, type the above information into client.

1)  Connection Type: SSH

     Host Name (or IP Address): [Hostname | IP Address]

     Port: 22

     loginusername:TCP_Port_Alias    - OR -

     loginusername:port_name          - OR -

     loginusername:device_name

 

2)  Connection Type: SSH

     Port: 22

     Host Name (or IP Address): [username:TCP_Port_Alias@Hostname | IP Address]  - OR -

     Host Name (or IP Address): [username:port_name@Hostname | IP Address]      - OR -

     Host Name (or IP Address): [username:device_name@Hostname | IP Address]

 

3)  Connection Type: SSH

     Host Name (or IP Address): [Hostname | IP Address]

     Port: 22

     loginusername

     [user@NSC-hostname /]# cd /access/<device_name> 

     [user@NSC-hostname /]# connect

 

Examples:

1)  Connection Type: SSH

     Host Name (or IP Address): SFO-DC7-R33-NSCT96

     Port: 22

     login: john:7003

     login: john:ttyS3

     login: john:SFO-DC7-R33-P3

 

2)  Connection Type: SSH

     Port: 22

     Host Name (or IP Address): john:7003@110.0.0.200             - OR -

     Host Name (or IP Address): john:ttyS3@110.0.0.200             - OR -

     Host Name (or IP Address): john:SFO-DC7-R33-P3@110.0.0.200 

 

3)  Connection Type: SSH

     Host Name (or IP Address): 110.0.0.200

     Port: 22

     loginjohn

     [user@NSC-hostname /]# cd /access/SFO-DC7-R33-P3

     [user@NSC-hostname /]# connect

 

B - To use SSH from a shell, type any of the following commands:

1) # ssh –l username:port_name [hostname | IP_address]

2) # ssh –l username:device_name [hostname | IP_address]

3) # ssh –l username:TCP_Port_Alias [hostname | IP_address]

4) # ssh –l username IP_Port_Alias

5) # ssh –l username [hostname | IP_address]

    [user@NSC-hostname /]# cd /access/<device_name> 

    [user@NSC-hostname /]# connect

 

Examples:

1) # ssh –l john:SFO-DC7-R33-P3 SFO-DC7-R33-NSCT96

2) # ssh –l john:ttyS3 110.0.0.200

3) # ssh –l john:7003 SFO-DC7-R33-NSCT96

4) # ssh –l john 110.0.0.10

5) # ssh –l john 110.0.0.200

    [user@NSC-hostname /]# cd /access/SFO-DC7-R33-P3 

    [user@NSC-hostname /]# connect

 

How to close your SSH session

At the beginning of new a line (hit ENTER), type the hotkey defined for the SSH from a shell followed by a dot. The default hotkey is ~. (tilde dot)

Or, enter ^Ec. and then type exit at the CLI prompt.

 

Note: for the CLI text session hotkey: press and hold CTRL key plus E key; release them; then hit C and then (dot)