systemssh

Use this command to configure SSH on FlexSwitch.

Configuration Objects

Feature Guides

  • None

systemssh Command

systemssh <context> <value>

Systemssh Settings

Context Description
Banner SSH banner default: FlexSwitch
ClientAliveCount Number of alive messages sent to client before the session terminates default: 5
ClientAliveInterval Time between alive messages sent to the client default: 15
Enable True/False Enable SSH service default: true
LoginTimeout Login timeout value for SSH login default: 60
MOTD Message of the day default: FlexSwitch

Configuration Examples

Setting the Attributes

FlexSwitch(config)#systemssh Banner MyFlexSwtich
FlexSwitch(config)#systemssh ClientAliveCount 10
FlexSwitch(config)#systemssh ClientAliveInterval 12
FlexSwitch(config)#systemssh LoginTimeout 50
FlexSwitch(config)#systemssh MOTD "Today is the first day of the rest of your life"

Show the Unapplied Configuration

FlexSwitch(config)#showunapplied 
d: 1    object: SystemSsh   status: PENDING CONFIG  valid: True delete: False num user cmds: 6
 command                          attr                   value                            model attr             iskey    required    userprov    time provisioned         
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 systemssh Banner MyFlexSwtich    Banner                 MyFlexSwtich                     Banner                 False                X           Thu Aug 24 16:03:40 2017 
                                  systemssh              FlexSwitch                       SystemId               True     X           X           Thu Aug 24 16:05:10 2017 
 systemssh ClientAliveCount 10    ClientAliveCount       10                               ClientAliveCount       False                X           Thu Aug 24 16:04:00 2017 
 systemssh ClientAliveInterval    ClientAliveInterval    12                               ClientAliveInterval    False                X           Thu Aug 24 16:04:22 2017 
 12                                                                                                                                                                        
 systemssh LoginTimeout 50        LoginTimeout           50                               LoginTimeout           False                X           Thu Aug 24 16:04:41 2017 
 systemssh MOTD Today is the      MOTD                   Today is the first day of the    MOTD                   False                X           Thu Aug 24 16:05:10 2017 
 first day of the rest of your                           rest of your life                                                                                                 
 life           

Applying the Configuration

FlexSwitch(config)#apply
Applying Config:
id: 1   object: SystemSsh   status: APPLIED CONFIG  valid: True delete: False num user cmds: 6
 command                          attr                   value                            model attr             iskey    required    userprov    time provisioned         
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 systemssh Banner MyFlexSwtich    Banner                 MyFlexSwtich                     Banner                 False                X           Thu Aug 24 16:03:40 2017 
                                  systemssh              FlexSwitch                       SystemId               True     X           X           Thu Aug 24 16:05:10 2017 
 systemssh ClientAliveCount 10    ClientAliveCount       10                               ClientAliveCount       False                X           Thu Aug 24 16:04:00 2017 
 systemssh ClientAliveInterval    ClientAliveInterval    12                               ClientAliveInterval    False                X           Thu Aug 24 16:04:22 2017 
 12                                                                                                                                                                        
 systemssh LoginTimeout 50        LoginTimeout           50                               LoginTimeout           False                X           Thu Aug 24 16:04:41 2017 
 systemssh MOTD Today is the      MOTD                   Today is the first day of the    MOTD                   False                X           Thu Aug 24 16:05:10 2017 
 first day of the rest of your                           rest of your life                                                                                                 
 life                                                                                                                                                                      

sdk:updateSystemSsh(FlexSwitch,ClientAliveInterval=12,Enable=True,ClientAliveCount=10,LoginTimeout=50,MOTD=Today is the first day of the rest of your life,Banner=MyFlexSwtich) result: SUCCESS: http status code: 200