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
|
|
|
Example |
|
|
|
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 |
|
|
|
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 |
|
|
|
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
|
|
|
Example |
|
|
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
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
|
|
|
Example |
|
|
|
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: