SSH Server#
Management → SSSSH Servers
The SSHServer resource enables a node to function as an SSH server for remote login.
OS-specific limitations#
Some operating systems have specific implementation details that are worth considering.
SR OS#
On SR OS, SSH is enabled by default in the ManagementRouter and the DefaultRouter.
- If access in both should be disabled, create an
SSHServerresource on either theManagementRouteror theDefaultRouterand set theenabledproperty tofalse. - If one should be enabled but not the other, consider using CPM filters.
SR Linux#
On SR Linux, SSH is enabled by default in the ManagementRouter. If access should be disabled, create an SSHServer resource that targets the ManagementRouter and set the enabled property to false.
Dependencies#
Each SSHServer resource targets either a ManagementRouter, a DefaultRouter, or a Router. While only one of the three is required, all three are listed as dependencies.
ManagementRouter#
If the SSHServer is reachable through a ManagementRouter, the resource referenced by the router property must exist.
Management routers cannot be selected through label selectors.
DefaultRouter#
If the SSHServer is reachable through a DefaultRouter, the resource referenced by the router property must exist.
Label selectors may be used to select multiple DefaultRouters.
Router#
If the SSHServer is reachable through a Router, the resource referenced by the router property must exist.
Routers cannot be selected through label selectors.
Referenced resources#
The SSHServer does not reference any other EDA resources.
Examples#
Custom Resource Definition#
To browse the Custom Resource Definition go to crd.eda.dev.
SSHServer
SPEC
SSHServerSpec defines the desired state of SSHServer
-
Enable password authentication for the SSH server. If disabled, only key-based authentication will be allowed.
-
Enable the SSH server.
-
Port for the SSH server to listen on.
format: int32range: 1 to 65535 -
Router to associate the server with.
-
The Kind of the router for the server.
enum: "ManagementRouter", "Router", "DefaultRouter" -
Selects router resources based on the defined Kind. Applies to DefaultRouter only. Not supported for Router and ManagementRouter.
STATUS
SSHServerStatus defines the observed state of SSHServer
-
Health score of the SSH server.
format: int32range: <= 100 -
Reason for the health score.
-
Indicates when the SSH server last changed state.
-
Operational state of the SSH server.
enum: "Up", "Down", "Degraded", "Unknown"