Skip to content

Commit fbfcdf5

Browse files
GavinFrazarptgott
andauthored
add openssh root login troubleshooting (#36109)
* add openssh root login troubleshooting * Update docs/pages/server-access/troubleshooting-server.mdx Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com> * Update docs/pages/server-access/troubleshooting-server.mdx Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com> * Update docs/pages/server-access/troubleshooting-server.mdx Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com> --------- Co-authored-by: Paul Gottschling <paul.gottschling@goteleport.com>
1 parent fcc97de commit fbfcdf5

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/pages/server-access/troubleshooting-server.mdx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,17 @@ spec:
140140
```
141141
142142
For more information about moderated sessions and session sharing, see
143-
[Moderated Sessions](../access-controls/guides/moderated-sessions.mdx).
143+
[Moderated Sessions](../access-controls/guides/moderated-sessions.mdx).
144+
145+
## Unable to connect to agentless OpenSSH server as root
146+
147+
You should check your sshd configuration in `/etc/ssh/sshd_config` for a setting like
148+
`PermitRootLogin no` or `PermitRootLogin forced-commands-only` - either of these
149+
settings will prevent login as root.
150+
If you wish to log in as root to an OpenSSH server via Teleport, we recommend
151+
changing this setting to `PermitRootLogin prohibit-password`.
152+
153+
You will need to restart sshd for the change to take effect:
154+
```code
155+
$ sudo systemctl restart sshd
156+
```

0 commit comments

Comments
 (0)