Logging in through ssh – H3C Technologies H3C S12500 Series Switches User Manual

Page 40

Advertising
background image

28

To Telnet to another device from the local switch, follow these steps:

1.

Set up a configuration environment as shown in

Figure 10

. If the two switches are not in the same

LAN, make sure the two switches can reach each other.

Figure 10 Telnetting from the switch (Telnet client) to another device (Telnet server)

2.

Configure the Telnet server:

a.

Enable the Telnet server.

b.

Configure the authentication mode on the Telnet server as needed.

3.

Log in to the switch that operates as the Telnet client.

4.

Execute the telnet command on the Telnet client to log in to the Telnet server:

Step

Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Specify the source IPv4
address or source

interface for sending

Telnet packets when the
switch serves as a Telnet

client.

telnet client source { interface
interface-type interface-number | ip
ip-address }

Optional.
By default, no source IPv4

address or source interface for
sending Telnet packets is

specified. The source IPv4

address is selected by the
routing process.

3.

Exit to user view.

quit

N/A

4.

Telnet to the Telnet server.

telnet remote-host [ service-port ]
[ [ vpn-instance

vpn-instance-name ] | [ source

{ interface interface-type
interface-number
| ip

ip-address } ] ]

telnet ipv6 remote-host [ -i

interface-type interface-number ]

[ port-number ] [ vpn-instance

vpn-instance-name ]

Use either method.
Available in user view.

5.

After login, a prompt appears (for example, <Sysname> ). If "All user interfaces are used, please
try later!" appears, try again later.

6.

Execute commands to configure the switch, or check the running status of the switch. To get help,

enter ?.

Logging in through SSH

SSH offers a secure method for remote login. By providing encryption and strong authentication, it

protects devices against attacks such as IP spoofing and plain text password interception. You can use an

SSH client to log in to the switch working as an SSH server for remote management, or use the device as
an SSH client to log in to an SSH server, as shown in

Figure 11

.

Advertising