• Welcome to Peterborough Linux User Group (Canada) Forum.
 

Notes for Nov. 4/19 Meeting: Remote Access

Started by Jason, November 05, 2019, 11:53:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jason

Here's the notes from the presentation showing to login to a remote Linux box from a local Linux box. It uses OpenSSH.

I've attached the file in .odt format, and a link to the live document on Google Docs. Feel free to suggest fixes to any errors or typos you have found. I will look at them, fix the document if necessary and update the attachment here to reflect the new document.

Google Doc link - you can make suggestions for errors or updates at this link:
https://docs.google.com/document/d/1M-VWDc3zpVhmIpEz_CY_gjeyVWww03uVxXL8okMYmdk/edit?usp=sharing

I'm not sure if you need a Google account to make suggestions. You'll have to try it out and let me know.
* Zorin OS 17.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13

Jason

#1
Here are some links that cover the presentation and might go beyond it. The last link shows you now just how to do graphical logins but also how to do it in VNC which may be a lot more useful. These links are also included in the attached document above and in the live document:

https://www.tecmint.com/install-openssh-server-in-linux/

https://phoenixnap.com/kb/ssh-to-connect-to-remote-server-linux-or-windows

https://blog.ssdnodes.com/blog/remote-linux-desktop-vps-ssh-vnc/
* Zorin OS 17.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13

fox

Thanks for your presentation last night, Jason, and for supplying the meeting notes and links. I was quite interested in the use of OpenSSH, but had some trouble following the details with all the open windows. Your notes should help clarify things. I think of OpenSSH, Nextcloud and Open Media Vault as related products when it comes to file sharing, servers and remote access. Now that I know something about OpenSSH and OMV, I'll be interested in your next PLUG presentation to see how Nextcloud compares to the other two; what it offers that those don't.
Ubuntu 24.10 on 2019 5k iMac
Ubuntu 24.04 on Dell XPS 13

Jason

#3
You're welcome.

When you login to a remote box using OpenSSH, files are not being shared. OpenSSH doesn't even have a graphical interface. But you can forward other interfaces like we saw at the meeting where we forwarded the xfce4 desktop to show up on the local machine. It's like we projected the desktop environment from the remote box to the local box.

Although OpenSSH, OMV and NC might be able to do some similar things, comparing OpenSSH to those two is like comparing apples and oranges.

OpenSSH isn't meant for sharing files. It's meant for no holds barred full access. Once you're logged in, you could delete every single file on the remote box. You could write shell scripts, you can install, update or remove packages. You don't just "see" the files on the remote machine with OpenSSH, you're logged into the remote machine and have all the same powers as if you were logged into it locally.

OMV and NC are meant for being repositories of files, usually documents or media files. OpenSSH can only share files via SFTP (Secure FTP) but it does so so much more than that.

OpenSSH is remote access software that let's you do anything you want to the server, OMV and NextCloud are essentially file servers. That's a huge difference.
For example, when I ssh to the PLUG server that runs this SMF-based forum, and the front pages of the site (Drupal-based), I have full power. You can't configure the PLUG webserver using OMV or NC. They would be primarily used to have a group-shared directory of media files accessible over the internet via a web browser (assuming OMV does, I'm pretty sure that NextCloud does).

There's no comparison between file/media servers and a remotely accessed shell. It's not a case of comparing which has better features because they do very different things.
OpenSSH is about controlling remote boxes entirely.

OMV and NC are about sharing files on a remote server using a web browser.
They can work in concern or separately. For example, you could use ssh to login to an remote box with OMV on it and turn OMV off or even shut down or restart the machine.

Because OpenSSH connects you to a terminal so you can do anything you normally can do in a terminal. With OMV or NC you're limited to what the interface is written to allow you to do and it's limited compared to what the terminal offers. Openssh essentially gives you full terminal access.

If you were to compare other software to OpenSSH, then you'd choose, for example, VNC or RDP which are other ways of getting remote access to a box.

Hopefully, that's more clear.
* Zorin OS 17.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13