Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2901

System and Network configuration • Re: Some questions about SSH

$
0
0
1- By default, Debian does not allow connecting with the root account via SSH, but the PermitRootLogin no option is disabled in the sshd_config file. How does this happen?
See the header of /etc/ssh/sshd_config
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
Therefore, the default option applied is

Code:

$> grep "PermitRootLogin" /etc/ssh/sshd_config#PermitRootLogin prohibit-password# the setting of "PermitRootLogin prohibit-password".
2- When I connect to a remote server, after a few minutes of not touching the console, SSH is disconnected. I entered the following two options in the sshd_config file, but it has no effect. Why?

Code:

ClientAliveInterval  1200ClientAliveCountMax 3
sshd_config is your server configuration file, not the one you connect to. Check the configuration of the server you are connecting to.
The default is

Code:

$> grep "ClientAliveInterval" /etc/ssh/sshd_config#ClientAliveInterval 0
ClientAliveInterval
Sets a timeout interval in seconds after which if no data has been received from the client, sshd(8) will send a message through the encrypted channel to request a response from the
client. The default is 0, indicating that these messages will not be sent to the client.
Hello,
Thank you so much for your reply.
1- I can't get your point. When "PermitRootLogin no" is disable, then I should be able to log in with the root account. Is it otherwise?

2- I put those two lines in the server's sshd_config file, not the client.

Statistics: Posted by jasonnix — 2024-02-26 09:42



Viewing all articles
Browse latest Browse all 2901

Trending Articles