Mon, 26 Feb 2024 12:36:56 +0100 "Carlos E. R." <robin.listas@telefonica.net> :
On 2024-02-26 03:12, Ben T. Fender wrote:
Mon, 26 Feb 2024 02:52:38 +0100 "Carlos E. R." <> :
On 2024-02-26 02:38, Ben T. Fender wrote:
...
this is what was missing, systemd commands
~ # systemctl status sshd.service ○ sshd.service - OpenSSH Daemon Loaded: loaded (/usr/lib/systemd/system/sshd.service; disabled; preset: disabled) Active: inactive (dead) ~ # systemctl start sshd.service
You have to use "enable" to make it permanent.
Having the ssh sever permanently active (ie, ready to accept a connection) is the normal thing to do in the Linux world. You probably said "no" when you installed the system.
When I need somethoing on another drive I mount it manually, then following I immediately umount it. Same with most other chores. This ssh thingie started saving IP's, I'll have to getrid of that bad habbit too, especially with a router that gives them dynamically which is the correct way (for me).
Now that I'm logged-in on the desktop and remotely on the laptop how do I trasfer thisfile.txt from the laptop to the desktop? Do I issue a command to send from the laptop where I'm remotely logged-in or do I issue some 'get' command in the desktop to get the file out of the laptop?
you use sftp:
sftp sftp://username@hostname.domain
I don't think I wanna make it permanent but I'm up and running, got a few scp transfers done already it's just another freakin syntax paradigm
The client is not permanent.
Any way to just open a file-mangler on both and drag files back and forth?
On the client side you do:
Create an empty directory, for example "~/fusermount/" on the client side. Then run:
sshfs username@hostname.domain/ ~/fusermount/
this connects and makes vissible the "/" path into ~/fusermount/, with the permissions for "username". You can browse there with any filebrowser you like.
When done, you close the connection:
fusermount -u ~/fusermount
Excellent, I'll have to ring this out
You can use this method to run any local command using the remote filesystem, as long as you can tell it to use the changed path. You can also manage to run remote programs using locally, but they can be confused with the path.
Some file browsers can connect on their own to remote computers using ssh. For instance, "krusader" (tools/ new net connection). It can be sftp or fish. Midnight commander has sftp.
Dolphin: go to network folders, then "add network folder". One method is ssh. Did not work for me, though.
nautilus has the feature a bit hidden (under "other locations"), but it works.
-- Cheers / Saludos,
Carlos E. R. (from 15.5 x86_64 at Telcontar)