Using SSH#

Logout of the host PC. On the client PC (Ubuntu), we need to establish the VPN connection. Open Pulse Secure and click on + to add new connection.

Copy the following settings:

image.png

Save and connect to the connection. For first time you need to download the Chromium Browser for Pulse Secure which will be automatically installed. When prompted enter your credentials. You should see a “connected” status.

image.png

SSH#

Open terminal and type USERNAME@LOCAL_IP

ssh hell@137.44.3.13

Enter the password for the USER and voila, you are connected to the Office PC.

(base) hell@Dell-Precision-T1600:~$ ssh hell@137.44.3.13
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.13.0-52-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

1 update can be applied immediately.
To see these additional updates run: apt list --upgradable

Your Hardware Enablement Stack (HWE) is supported until April 2025.


Last login: Fri Jul  8 13:04:29 2022 from --.--.--.---

Now we can go on and pass our Public Key to the HOST PC for passwordless SSHing.

Adding an alias for the HOST PC#

We can also add an alias for the HOST PC in the ~/.ssh/config file. This is the predefined format.

(base) hell@Dell-Precision-T1600:~$ cat ~/.ssh/config
Host    officePC
    User    hell
    HostName    137.44.3.13

Now we can ssh with the alias as follows

ssh officePC

Passwordless login#

For password login we need to copy the Public Key of the Client PC to the HOST PC. We can copy Public Key using ssh-copy-id

ssh-copy-id hell@137.44.3.13

If the above command does not work try this one.

ssh-copy-id -i ~/.ssh/id_rsa.pub hell@137.44.3.13

Enter the password for hell user. Now we can do a passwordless SSH.

(base) hell@Dell-Precision-T1600:~$ ssh officePC
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.13.0-52-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

1 update can be applied immediately.
To see these additional updates run: apt list --upgradable

Your Hardware Enablement Stack (HWE) is supported until April 2025.


Last login: Fri Jul  8 13:16:10 2022 from --.--.--.---
(base) hell@Dell-Precision-T7910:~$