rsync over ssh i cant make connection

  • 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

    Code
    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

    Code
    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

    Code
    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

    Code
    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

    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

    Code
    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
    

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!