- Information About SSHv2 and Telnet
- Prerequisites
- Guidelines and Limitations
- Default Settings
- Configuring SSHv2
- Configuring Telnet
- Verifying the SSHv2 and Telnet Configuration
- Configuration Example
Configuring SSHv2 and Telnet
This chapter describes how to configure Secure Shell Protocol version 2 (SSHv2) and Telnet on the Cisco1000 Series Connected Grid Routers (hereafter referred to as Cisco CG-OS router).
Information About SSHv2 and Telnet
This section includes the following topics:
- SSHv2 Server
- SSHv2 Client
- SSHv2 Server Keys
- SSHv2 Authentication Using Digital Certificates
- Telnet Server
SSHv2 Server
You can use the SSHv2 server to enable an SSH client to make a secure, encrypted connection to the Cisco CG-OS router. SSHv2 uses strong encryption for authentication. The SSHv2 server in
the Cisco CG-OS software can interoperate with publicly and commercially available SSHv2 clients.
The user authentication mechanisms supported for SSHv2 are RADIUS, TACACS+, and the use of locally stored usernames and passwords on the Cisco CG-OS router.
SSHv2 Client
The SSHv2 client feature is an application that runs over the SSHv2 protocol to provide device authentication and encryption. The SSHv2 client enables the Cisco CG-OS router to make a secure, encrypted connection to any other device that runs the SSHv2 server. This connection provides an encrypted outbound connection. With authentication and encryption, the SSHv2 client allows for a secure communication over an insecure network.
The SSHv2 client in Cisco CG-OS works with publicly and commercially available SSHv2 servers.
SSHv2 Server Keys
SSHv2 requires server keys for secure communications to the Cisco CG-OS router. You can use SSHv2 server keys for the following SSHv2 options:
- SSHv2 version 2 using Rivest, Shamir, and Adelman (RSA) public-key cryptography
- SSHv2 version 2 using the Digital System Algorithm (DSA)
Be sure to have an SSHv2 server key-pair with the appropriate version before enabling the SSHv2 service. You can generate the SSHv2 server key-pair according to the SSHv2 client version used. The SSHv2 service accepts two types of key-pairs for use by SSHv2:
- The dsa option generates the DSA key-pair for the SSHv2 protocol.
- The rsa option generates the RSA key-pair for the SSHv2 protocol.
By default, Cisco CG-OS generates an RSA key using 1024 bits.
SSHv2 supports the following public key formats:
SSHv2 Authentication Using Digital Certificates
SSHv2 authentication provides X.509 digital certificate support for host authentication. An X.509 digital certificate is a data item that ensures the origin and integrity of a message. It contains encryption keys for secured communications and is signed by a trusted certification authority (CA) to verify the identity of the presenter. The X.509 digital certificate support provides either DSA or RSA algorithms for authentication.
The certificate infrastructure uses the first certificate that supports the Secure Socket Layer (SSL) and is returned by the security infrastructure, either through query or notification. Verification of certificates is successful if the certificates are from any of the trusted CAs.
You can configure your device for either SSHv2 authentication using an X.509 certificate or SSHv2 authentication using a Public Key Certificate, but not both. If either of them is configured and the authentication fails, you are prompted for a password.
For more information on CAs and digital certificates, see Chapter6, “Configuring PKI”
Telnet Server
The Telnet protocol enables TCP/IP connections to a host. Telnet allows a user at one site to establish a TCP connection to a login server at another site and then passes the keystrokes from one device to the other. Telnet can accept either an IP address or a domain name as the remote device address.
By default, the Telnet server is disabled on the Cisco CG-OS router.
Prerequisites
Configure IP on a Layer 3 interface, out-of-band on the mgmt 0 interface, or inband on an Ethernet interface.
Guidelines and Limitations
Cisco CG-OS supports only SSH version 2 (SSHv2).
You can configure the Cisco CG-OS router with either SSHv2 authentication using an X.509 certificate or SSHv2 authentication using a Public Key Certificate, but not both. Regardless of which authentication method is in use, the Cisco CG-OS router prompts the user for a password when authentication fails.
Cisco CG-OS supports a maximum of 60 concurrent SSHv2 and Telnet sessions.
Default Settings
Table 5-1 lists the default settings for SSHv2 and Telnet parameters.
Configuring SSHv2
This section includes the following sections:
- Generating SSHv2 Server Keys
- Specifying the SSHv2 Public Keys for User Accounts
- Starting SSHv2 Sessions
- Clearing SSHv2 Hosts
- Disabling the SSHv2 Server
- Clearing SSHv2 Sessions
Generating SSHv2 Server Keys
You can generate an SSHv2 server key based on your security requirements. The default SSHv2 server key is an RSA key that the Cisco CG-OS router generates using 1024 bits.
BEFORE YOU BEGIN
Ensure that you have met the prerequisites for SSHv2 summarized under Prerequisites.
DETAILED STEPS
Specifying the SSHv2 Public Keys for User Accounts
You can configure an SSHv2 public key to log in using an SSHv2 client without being prompted for a password. You can specify the SSHv2 public key in one of these formats:
Specifying the SSHv2 Public Keys in OpenSSH Format
You can specify the SSHv2 public keys in OpenSSH format for user accounts.
EXAMPLE
This example shows how to specify SSHv2 public keys for user accounts.
Specifying the SSHv2 Public Keys in IETF SECSH Format
You can specify the SSHv2 public keys in IETF SECSH format for user accounts.
DETAILED STEPS
Starting SSHv2 Sessions
You can start SSHv2 sessions using IPv4 or IPv6 to connect to remote devices from the Cisco CG-OS router.
Note Cisco CG-OS supports a maximum of 60 concurrent SSHv2 and Telnet sessions.
BEFORE YOU BEGIN
Obtain the hostname for the remote device and, if needed, the username on the remote device.
EXAMPLE
This example shows how to create an SSHv2 IPv4 session to a remote device.
This example shows how to how to create an SSHv2 IPv6 session to a remote device.
Clearing SSHv2 Hosts
When you download a file from a server using SCP or SFTP, or when you start an SSHv2 session from the Cisco CG-OS router to a remote host, you establish a trusted SSHv2 relationship with that server. You can clear the list of trusted SSHv2 servers for your user account.
Disabling the SSHv2 Server
By default, the SSHv2 server is enabled on the Cisco CG-OS router. You can disable the SSHv2 server to prevent SSHv2 access to the Cisco CG-OS router.
Note To reenable SSHv2, you must first generate an SSHv2 server key. (See Generating SSHv2 Server Keys.)
BEFORE YOU BEGIN
Disable the SSHv2 server. (See Disabling the SSHv2 Server.)
Configuring Telnet
This section includes the following topics:
Enabling the Telnet Server
You can enable the Telnet server on the Cisco CG-OS router. By default, the Telnet server is disabled.
Starting Telnet Sessions to Remote Devices
You can start Telnet sessions to connect to remote devices from the Cisco CG-OS router. You can start Telnet sessions by using either IPv4 or IPv6.
Note Cisco CG-OS supports a maximum of 60 concurrent SSHv2 and Telnet sessions.
BEFORE YOU BEGIN
Obtain the hostname or IP address for the remote device and, if needed, the username on the remote device.
Enable the Telnet server on the Cisco CG-OS router. (See Enabling the Telnet Server.)
DETAILED STEPS
EXAMPLE
This example shows how to configure a Telnet session to a remote device that is using IPv4.
This example shows how to configure a Telnet session to a remote device that is using IPv6.
Verifying the SSHv2 and Telnet Configuration
To display the SSHv2 and Telnet configuration information, enter any or all of the following commands:
Feedback