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

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_userand 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 ...

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