From the course: Linux System Engineer: Networking and SSH

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

SSH per user client files

SSH per user client files

From the course: Linux System Engineer: Networking and SSH

Start my 1-month free trial

SSH per user client files

- For this lesson we'll need both VMs running so start them now. You'll also need the IP address of your rhhost2 VM. Gather that information before we begin. With SSH, every user can have a per-user configuration file for overriding certain SSH client configuration items. This configuration file is stored on the user's home directory at ~/.ssh/config. The .ssh directory doesn't exist until you try to connect to a server for the first time or you create SSH keys. Creating it manually is possible, but the ownership and permissions need to be exact or SSH won't function properly. I suggest trying to SSH to a server and then canceling it as a simple method of ensuring it's created properly. We can verify if it exists using "ls". Type in "ls -la" and hit Enter. The per-user client configuration file allows us to store information about our remote servers to make administration easier. Let's create one using "vi". Type in "clear" and then type in "vi ~/.ssh/config" and hit Enter. Go into…

Contents