Transfers between client computers

openSUSE 13.2 64bit KDE 4.14.6

I have a backup server connected to five client boxes using NFS. It is only powered up during backups. Security is not an issue. I would like to be able to transfer data between three of the client machines without going through the server. What is the simplest way to do this?

Thanks in advance.

There are a number of protocols you could choose from. If you want to keep things simple, you could browse the shares via Dolphin using the SSH FTP (sftp://) protocol. For example, say you have a machine with IP address 192.168.1.20, and user ‘ionmich’. On a local machine, you launch Dolphin and enter

sftp://ionmich@192.168.1.20

then press enter and wait until you are prompted for the remote user’s password. You will then be able to navigate to the directory of interest, and you can drag and drop files between the remote and local machine.

If you network has a name service, or your router provides this (as mine does), then you can use hostnames instead. For example, I have a machine named ‘linux-bbgi’. I can get remote file access with Dolphin using

sftp://dean@linux-bbgi

I also have Avahi running, so ‘linux-bbgi.local’ works for me too.

More information here:
https://activedoc.opensuse.org/book/opensuse-reference/chapter-27-copying-and-sharing-files

I followed your first instruction and using Dolphin I entered …

sftp://ingrid@192.168.0.105

…the response was…

Connection refused

I then read your link and followed the instructions for setting up under the heading “Procedure 27.2: KDE”. I got the same response.

ionmich wrote:

>
> deano_ferrari;2709364 Wrote:
>> There are a number of protocols you could choose from. If you want to
>> keep things simple, you could browse the shares via Dolphin using the
>> SSH FTP (sftp://) protocol. For example, say you have a machine with
>> IP address 192.168.1.20, and user ‘ionmich’. On a local machine, you
>> launch Dolphin and enter
>> >
> Code:
> --------------------
> > > sftp://ionmich@192.168.1.20
> --------------------
>> >
>> then press enter and wait until you are prompted for the remote
>> user’s password. You will then be able to navigate to the directory
>> of interest, and you can drag and drop files between the remote and
>> local machine.
>>
>> If you network has a name service, or your router provides this (as
>> mine does), then you can use hostnames instead. For example, I have a
>> machine named ‘linux-bbgi’. I can get remote file access with Dolphin
>> using
>> >
> Code:
> --------------------
> > > sftp://dean@linux-bbgi
> --------------------
>> >
>> I also have Avahi running, so ‘linux-bbgi.local’ works for me too.
>>
>>
>> More information here:
>> http://tinyurl.com/lpbecwr
>
> I followed your first instruction and using Dolphin I entered …
>
> Code:
> --------------------
> sftp://ingrid@192.168.0.105
> --------------------
>
> …the response was…
>
> Code:
> --------------------
> Connection refused
> --------------------
>
>
> I then read your link and followed the instructions for setting up
> under the heading “Procedure 27.2: KDE”. I got the same response.
>
>

You probably have to modify /etc/hosts.allow on the receiving computer,
to allow the connection. And make sure that sshd is running on it.


*********** To reply by e-mail, make w single in address **************

BTW, i get the idea that you think that you calling them “server” and “client” is important for your problem. When that is not the case, you can stop reading.

They may be “server” and “client” with respect to the backup software you use, but they are all just “computers”. And for any other file transfer between them they, interchangeable, run ftp server and ftp client, rsync server and rsync client, and so on.

In Unix/Linux, server is a network functionality of a program (often called daemon) and it means that the sever program is listening on a TCP/IP port. Client programs try to connect to the ports on the systems running those server programs.

On Mon, 11 May 2015 08:36:01 +0000, ionmich wrote:

> openSUSE 13.2 64bit KDE 4.14.6
>
> I have a backup server connected to five client boxes using NFS. It is
> only powered up during backups. Security is not an issue. I would like
> to be able to transfer data between three of the client machines without
> going through the server. What is the simplest way to do this?
>
> Thanks in advance.

btsync is probably what I’d look at doing - and that rather than using
NFS.

Either that, or look at implementing something like OCFS2 or ceph.

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

There are many ways to approach your objective.

One that hasn’t been mentioned is to created a “shared block level device.”
The previous proposed solutions generally have the perceived problem that you have to setup a server-side application to expose a network share.

Another approach is to deploy something like iscsi which would be a block level (not application level) device which would then be formatted so it would be visible to all iscsi clients. Everything you need to setup is in your OSS and IIRC there is a YAST applet which can make setup even easier.

TSU

You need to make sure that sshd is running (as Ian suggested already).

For reference, I have

# systemctl status sshd
sshd.service - OpenSSH Daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled)
   Active: active (running) since Tue 2015-05-12 07:36:28 NZST; 4min 44s ago
  Process: 636 ExecStartPre=/usr/sbin/sshd-gen-keys-start (code=exited, status=0/SUCCESS)
 Main PID: 645 (sshd)
   CGroup: /system.slice/sshd.service
           └─645 /usr/sbin/sshd -D

Following your instructions I invoked…

# systemctl status sshd
sshd.service - OpenSSH Daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled)
   Active: active (running) since Tue 2015-05-12 08:40:27 CEST; 5min ago
  Process: 1937 ExecStartPre=/usr/sbin/sshd-gen-keys-start (code=exited, status=0/SUCCESS)
 Main PID: 1941 (sshd)
   CGroup: /system.slice/sshd.service
           └─1941 /usr/sbin/sshd -D

May 12 08:40:26 apollo sshd-gen-keys-start[1937]: Checking for missing server keys in /etc/ssh
May 12 08:40:27 apollo sshd-gen-keys-start[1937]: ssh-keygen: generating new host keys: RSA1 RSA D...519
May 12 08:40:27 apollo sshd[1941]: Server listening on 0.0.0.0 port 22.
May 12 08:40:27 apollo sshd[1941]: Server listening on :: port 22.
Hint: Some lines were ellipsized, use -l to show in full.

“Server listening on 0.0.0.0 port 22” does not look right to me, and Dolphin still reports “Connection refused.”

Is sshd running on the remote machine? Check with nmap.

For example, my remote machine (with IP addy 192.168.1.9):

# nmap 192.168.1.9

Starting Nmap 6.40 ( http://nmap.org ) at 2015-05-12 19:54 NZST
Nmap scan report for linux-bbgi (192.168.1.9)
Host is up (0.000011s latency).
Not shown: 995 closed ports
PORT    STATE SERVICE
22/tcp  open  ssh
111/tcp open  rpcbind
139/tcp open  netbios-ssn
445/tcp open  microsoft-ds
631/tcp open  ipp

The quick test is can you ssh into the remote machine from the local one?

For example

~>  ssh dean@192.168.1.9
Password: 
Last login: Tue May 12 19:53:58 2015 from console
Have a lot of fun...
~>

Thank you very much for the great advice. Everything works. There’s a smile on my face.

Very good :slight_smile: