"ssh_config" and "sshd_config".

Issues related to configuring your network
Post Reply
hack3rcon
Posts: 423
Joined: 2014/11/24 11:04:37

"ssh_config" and "sshd_config".

Post by hack3rcon » 2019/01/26 11:37:34

Hello.
What is the different between "ssh_config" and "sshd_config" files? When I want to configure SSH then which file must be edited?

Thank you.

User avatar
TrevorH
Forum Moderator
Posts: 26111
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: "ssh_config" and "sshd_config".

Post by TrevorH » 2019/01/26 12:13:38

As the names imply, sshd_config is the file to configure the sshd daemon. The ssh_config file is to set configuration options for the ssh client.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

hack3rcon
Posts: 423
Joined: 2014/11/24 11:04:37

Re: "ssh_config" and "sshd_config".

Post by hack3rcon » 2019/01/26 13:07:01

TrevorH wrote:
2019/01/26 12:13:38
As the names imply, sshd_config is the file to configure the sshd daemon. The ssh_config file is to set configuration options for the ssh client.
Thank you.

greys
Posts: 4
Joined: 2019/02/19 09:42:35

Re: "ssh_config" and "sshd_config".

Post by greys » 2019/02/19 09:51:54

Just to clarify, these are system-wide (global) config files.

For user-specific ssh client settings, create $HOME/.ssh/config file.

It's handy for specifying SSH host aliases, users, non-standard connection ports, different IP addresses or even proxy servers for connecting to remote servers.

Post Reply