"ssh_config" and "sshd_config".

Issues related to configuring your network
Post Reply
hack3rcon
Posts: 757
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
Site Admin
Posts: 33202
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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

hack3rcon
Posts: 757
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