forum.openmediavault.org/wsc/index.php?attachment/29035/I clearly do something wrong or im a complete moron.
For testing purposes i setup three VMs OMV v6 , mint 21.1c which is basically ubuntu 22.04 with no snap in it.
Ssh and rsync are installed on ubuntu, ssh and rsync present in dashboard OMV yet when i go in to cli on omv side and give command apt install ssh instead of message ssh already installed i saw the installation process starts.
That is basically installation monit in polish
root@openmediavault:~# apt install ssh
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności... Gotowe
Odczyt informacji o stanie... Gotowe
Zostaną zainstalowane następujące NOWE pakiety:
ssh
0 aktualizowanych, 1 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych.
ssh on omv side is up and running
root@openmediavault:~# systemctl start ssh
root@openmediavault:~# systemctl status ssh
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2023-03-11 14:08:18 CET; 10min ago
Docs: man:sshd(8)
man:sshd_config(5)
same as the client side ssh om my linux mint vm
mint1@mint1-mint1:~$ systemctl restart ssh
mint1@mint1-mint1:~$ systemctl status ssh
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: e>
Active: active (running) since Sat 2023-03-11 14:17:42 CET; 17s ago
Docs: man:sshd(8)
Now the real fun begins
I have created z pool on my omv
root@openmediavault:~# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
mydata 89.5G 301K 89.5G - - 0% 0% 1.00x ONLINE -
root@openmediavault:~#
and the user who have access to this pool
root@openmediavault:~# getent passwd | grep mint1
mint1:x:1000:100::/mydata/user-data/mint1:/usr/bin/bash
root@openmediavault:~#
now
That is my so called "pc with data ip 10.0.2.27
that is the omv ip 10.0.2.28
I can ping both ways
root@openmediavault:~# ping 10.0.2.2
PING 10.0.2.2 (10.0.2.2) 56(84) bytes of data.
64 bytes from 10.0.2.2: icmp_seq=1 ttl=64 time=0.178 ms
64 bytes from 10.0.2.2: icmp_seq=2 ttl=64 time=0.169 ms
64 bytes from 10.0.2.2: icmp_seq=3 ttl=64 time=0.202 ms
64 bytes from 10.0.2.2: icmp_seq=4 ttl=64 time=0.181 ms
64 bytes from 10.0.2.2: icmp_seq=5 ttl=64 time=0.294 ms
^C
--- 10.0.2.2 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4100ms
rtt min/avg/max/mdev = 0.169/0.204/0.294/0.045 ms
root@openmediavault:~#
mint1@mint1-mint1:~$ ping 10.0.2.28
PING 10.0.2.28 (10.0.2.28) 56(84) bytes of data.
64 bytes from 10.0.2.28: icmp_seq=1 ttl=64 time=0.198 ms
64 bytes from 10.0.2.28: icmp_seq=2 ttl=64 time=0.190 ms
64 bytes from 10.0.2.28: icmp_seq=3 ttl=64 time=0.188 ms
64 bytes from 10.0.2.28: icmp_seq=4 ttl=64 time=0.142 ms
64 bytes from 10.0.2.28: icmp_seq=5 ttl=64 time=0.185 ms
^C
--- 10.0.2.28 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4101ms
rtt min/avg/max/mdev = 0.142/0.180/0.198/0.019 ms
mint1@mint1-mint1:~$
Display More
Fine now i created pair of rsa keys on My Pc sitde
then i create some keys on omv side
I cannot connect over ssh to omv so i delete the keys. I still cant connect over ssh
now im clueless
Ok I bassically reinstall the system
Create pair of keys in a web interface then i copy public key manually to my so called pc via ssh-copy-id mint1@10.0.2.27
Now when i test run my rsync from web interface i got this
Please wait, syncing <mint1@10.02.27:/home/mint1/Pulpit> to </data/data/> ...
ssh: connect to host 10.2.0.27 port 22: Connection timed out
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(228) [Receiver=3.2.3]
ERROR: The synchronisation failed.
END OF LINE
█