Networking NVIDIA NVOS User Manual for InfiniBand Switches

SSH Commands

nv show system ssh-server


nv show system ssh-server

Shows the SSH server configuration.

Syntax Description

N/A


Default

N/A

History

25.02.2002 
25.02.3000 Updated command output

Example

admin@nvos:~$ nv show system ssh-server
                        operational  applied
----------------------  -----------  --------
authentication-retries  6            6
login-timeout           120          120
inactive-timeout        20           20
login-record-period     1            1
max-sessions            100          100
pka-only                disabled     disabled
[port]                  22           22

REST API

GET https://<ip>/nvue_v1/system/ssh-server

Related Commands

nv show system ssh-server port

Notes


nv show system ssh-server port


nv show system ssh-server port

Shows the TCP ports on which the SSH server listens for incoming sessions.

Syntax Description

N/A


Default

N/A

History

25.02.3000

Example

admin@nvos:~$ nv show system ssh-server port
Ports
-----
22

REST API

GET https://<ip>/nvue_v1/system/ssh-server/port

Related Commands

nv show system ssh-server

Notes


nv set/unset system ssh-server authentication-retries


nv set/unset system ssh-server authentication-retries [<retries>]

Sets the number of login attempts that the SSH server allows before it rejects the session.

Syntax Description

retries

Integer: 3–100

Default

6

History


Example

admin@nvos:~$ nv set system ssh-server authentication-retries 10

REST API

PATCH https://<ip>/nvue_v1/system/ssh-server/authentication-retries

Related Commands

nv show system ssh-server

Notes


nv set/unset system ssh-server inactive-timeout


nv set/unset system ssh-server inactive-timeout [<minutes>]

Sets the number of minutes that an SSH session can be inactive before the SSH server closes the connection.

Syntax Description

minutes

Integer: 0–35000

Default

20 minutes

History

25.02.2002 
25.02.5002 Updated command syntax

Example

admin@nvos:~$ nv set system ssh-server inactive-timeout 300

REST API

PATCH https://<ip>/nvue_v1/system/ssh-server/inactive-timeout

Related Commands

nv show system ssh-server

Notes

Applies to new connections only.

nv set/unset system ssh-server login-record-period


nv set/unset system ssh-server login-record-period [<days>]

Sets the number of days of login records that the switch shows after a user logs in.

Syntax Description

days

Integer: 1–30

Default

1

History


Example

admin@nvos:~$ nv set system ssh-server login-record-period 7

REST API

PATCH https://<ip>/nvue_v1/system/ssh-server/login-record-period

Related Commands

nv show system ssh-server

Notes


nv set/unset system ssh-server login-timeout


nv set/unset system ssh-server login-timeout [<seconds>]

Sets the number of seconds that a user has to log in before the SSH server closes the connection.

Syntax Description

seconds

Integer: 1–600

Default

120

History


Example

admin@nvos:~$ nv set system ssh-server login-timeout 60

REST API

PATCH https://<ip>/nvue_v1/system/ssh-server/login-timeout

Related Commands

nv show system ssh-server

Notes


nv set/unset system ssh-server max-sessions


nv set/unset system ssh-server max-sessions [<sessions>]

Sets the maximum number of concurrent SSH sessions.

Syntax Description

sessions

Integer: 3–100

Default

100

History

25.02.2002 

Example

admin@nvos:~$ nv set system ssh-server max-sessions 10

REST API

PATCH https://<ip>/nvue_v1/system/ssh-server/max-sessions

Related Commands

nv show system ssh-server

Notes

Applies to new connections only.

nv set/unset system ssh-server pka-only


nv set/unset system ssh-server pka-only [enabled | disabled]

Enables or disables PKA-only mode. In PKA-only mode, users that have an authorized SSH key cannot log in with a password.

Syntax Description

enabled

Blocks password authentication for users that have an authorized SSH key.

disabled

Allows password authentication for all users.

Default

disabled

History


Example

admin@nvos:~$ nv set system ssh-server pka-only enabled

REST API

PATCH https://<ip>/nvue_v1/system/ssh-server/pka-only

Related Commands

nv show system ssh-server

Notes


nv set/unset system ssh-server port


nv set/unset system ssh-server port <port-id>

Sets a TCP port on which the SSH server listens for incoming sessions.

Syntax Description

port-id

TCP port number: 1–65535

Default

22

History

25.02.2002 
25.02.5002 Updated command syntax

Example

admin@nvos:~$ nv set system ssh-server port 2222

REST API

PATCH https://<ip>/nvue_v1/system/ssh-server/port

Related Commands

nv show system ssh-server

Notes

You can configure more than one port. By default, the SSH server listens on port 22. When you configure a port, the SSH server stops listening on port 22 unless you also configure port 22.

Last updated: