How To: Enable SSH

Installing SSH on Linux

The man page defines SSH as:

ssh — OpenSSH remote login client

Now, simply type (this one can be easily adjusted to other package managers):

[code]sudo apt install openssh-server[/code]

[code]ssh remote_user@ip.a.d.d.r[/code]

[code]ssh remote_user@host_name.local[/code]

[code]ssh kgiii@kgiii-msi.local[/code]

[code]hostname[/code]

And, with that, I thank you my dear reader for taking the time out of your day to humor this old fool. Your feedback is appreciated and keep signing up to that whole newsletter thing. Being old, I tend to forget to submit and share these articles elsewhere. Signing up means you have no excuses for missing an article!




Installing Google Earth on a Remote Computer

I wanted to test Google Earth Pro, but I didn’t want to install it on this computer. I wanted to install Google Earth Pro on a remote computer and test it there.

This is really just an expression of why I like Linux as much as I do. It allows me to be elegant and lazy!

First, I went to Google’s site for their Google Earth Pro application and found the download. It tried to make me download it automatically, and I canceled that. Instead, I right clicked on their link to ‘try again’ if the download didn’t start automatically and copied that link. Tada! 

Then, I opened my terminal…

[code]ssh kgiii@kgiii-lmde.local[/code]

I entered my password and was logged into that computer in the terminal. 

The next steps were just as easy.

[code]wget https://dl.google.com/dl/earth/client/current/google-earth-pro-stable_current_amd64.deb
 && sudo apt install ./google-earth-pro-stable_current_amd64.deb[/code]

Then I just waited and let it finish the task I’d set for it. Now, when I next go to that computer, or if I login with VNC, I can use Google Earth Pro and won’t have to go find the download, download it, and wait for it to install before I can use it. It’s already there, waiting for me to play with it.




How To: Find the hostname.

The hostname is, for many of you who will be reading this, the same as your username. This is not always true.

Why is it important? Well, if I want to connect to a box on my network, I use its hostname. For example:

ssh kgiii@kgiii-lmde.local

That means I don’t need to know the IP address of the box, I merely need to know the hostname. That, as I said, is usually your username. On the off-chance that it isn’t, it’s easy to find.

cat /proc/sys/kernel/hostname

And there you go.