O'Reilly logo

Mastering Bash by Giorgio Zarrelli

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ssh_config

On the client side, we have a few ways to configure how a connection will be held:

  • From the command line, passing options to the client while invoking it
  • From the configuration file inside the user's home directory ~/.ssh/config
  • From the system-wide configuration file in /etc/ssh/ssh_config

For the configuration files, we must bear in mind that only the first value obtained for each directive will be used; so if we give the same directive multiple times, only the first one will be evaluated. So, we must keep the more specific options at the beginning of the configuration file while the broader one will be pushed toward the end.

As we will see in the next paragraph, where we will examine a practical use of the client configuration, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required