beautypg.com

Service ssh, Service ssh [ip|ipv6, No service ssh [ip|ipv6 – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 1396

background image

Secure Shell (SSH) Commands

Software Reference for x310 Series Switches

54.14

AlliedWare Plus

TM

Operating System - Version 5.4.4C

C613-50046-01 REV A

service ssh

This command enables the Secure Shell server on the device. Once enabled, connections
coming from SSH clients are accepted.

SSH server needs a host key before it starts. If an SSHv2 host key does not exist, then this
command fails. If SSHv1 is enabled but a host key for SSHv1 does not exist, then SSH
service is unavailable for version 1.

The no variant of this command disables the Secure Shell server. When the Secure Shell
server is disabled, connections from SSH, SCP, and SFTP clients are not accepted. This
command does not affect existing SSH sessions. To terminate existing sessions, use the

clear ssh

command.

Syntax

service ssh [ip|ipv6]

no service ssh [ip|ipv6]

Default

The Secure Shell server is disabled by default. Both IPv4 and IPv6 Secure Shell server are
enabled when you issue service ssh without specifying the optional ip or ipv6
parameters.

Mode

Global Configuration

Examples

To enable both the IPv4 and the IPv6 Secure Shell server, use the commands:

To enable the IPv4 Secure Shell server only, use the commands:

To enable the IPv6 Secure Shell server only, use the commands:

To disable both the IPv4 and the IPv6 Secure Shell server, use the commands:

To disable the IPv4 Secure Shell server only, use the commands:

awplus#

configure terminal

awplus(config)#

service ssh

awplus#

configure terminal

awplus(config)#

service ssh ip

awplus#

configure terminal

awplus(config)#

service ssh ipv6

awplus#

configure terminal

awplus(config)#

no service ssh

awplus#

configure terminal

awplus(config)#

no service ssh ip