Configuring the client

Back to our client; let's enter the home directory of the user we want to set up the connection for. Let's say that local_user wants to connect as test_user on the remote host called spoton.

Let's go to the local_user home directory, local_user:~$ cd /home/local_user, and have a look at what is inside it:

local_user:~$ ls -lahtotal 20Kdrwxr-xr-x 2 local_user local_user 4.0K Apr 24 18:34 .drwxr-xr-x 4 root root 4.0K Apr 24 18:34 ..-rw-r--r-- 1 local_user local_user 220 Nov 15 18:49 .bash_logout-rw-r--r-- 1 local_user local_user 3.5K Nov 15 18:49 .bashrc-rw-r--r-- 1 local_user local_user 675 Nov 15 18:49 .profile

Well, the usual file for a new account, but there is a problem:

root:# egrep IdentityFile /etc/ssh/ssh_config ...

Get Mastering Bash now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.