No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

AR500, AR510, and AR530 V200R007 Commands Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
ssh server permit interface

ssh server permit interface

Function

The ssh server permit interface command specifies physical interfaces on the SSH server to which clients can connect.

The undo ssh permit interface command restores the default physical interfaces on the SSH server to which clients can connect.

By default, clients can connect to all the physical interfaces on the SSH server.

Format

ssh server permit interface { interface-type interface-number } &<1-5>

undo ssh server permit interface

Parameters

Parameter Description Value
interface-type interface-number

interface-type: specifies the interface type.

interface-number: specifies the interface number. interface-number and interface-type specify an interface.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To prevent a client from connecting to the SSH server through an unauthorized physical interface, you can run the ssh server permit interface command to specify physical interfaces on the SSH server to which the client can connect.

Precautions

  • By default, the client can connect to all the physical interfaces on the SSH server. When you run this command to specify one physical interface on the SSH server, the client cannot connect to the other physical interfaces on the SSH server.
  • You can specify a maximum of five interfaces each time you run the ssh server permit interface command. The latest configuration overrides the previous one. For example, before you run the command, clients can connect to three physical interfaces GigabitEthernet 1/0/0, GigabitEthernet 2/0/0, and GigabitEthernet 3/0/0 on the SSH server. After you run the command to specify the interface GigabitEthernet 1/0/0, clients can only connect to the interface GigabitEthernet 1/0/0.

Example

# Specify physical interfaces on the SSH server to which clients can connect.

<Huawei> system-view
[Huawei] ssh server permit interface gigabitethernet 1/0/0 gigabitethernet 2/0/0
Info: Succeeded in setting ssh permit interface.

# Restore the default physical interfaces on the SSH server to which clients can connect.

<Huawei> system-view
[Huawei] undo ssh server permit interface
Translation
Download
Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 52375

Downloads: 102

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next