Dear Community,


we built a DAC container and want to upload it with BundleGen on a RPI3 with DAC RefImage installed.

But we get the error on upload via scp: Unable to negotiate with 192.168.80.94 port 22: no matching host key type found. Their offer: ssh-rsa

How do we enable SSH on RefImage?

Via Service on port 9998 we found no posibility.

Thank you in advance,

best regards

Markus


  • No labels

1 Comment

  1. Problem is old encryption 

    Attention: this is a workaround!


    Add in ~/.ssh/config


    Host 172.xxx.xxx.xxx
    
      HostName 172.xxx.xxx.xxx
    
      User root
    
      PubkeyAcceptedAlgorithms +ssh-rsa
    
      HostkeyAlgorithms +ssh-rsa



    Also edit test/testapp_lisa.sh in BundleGen → at upload

    From:

    scp -oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no -C "${PKG}" "root@$BOXIP:/opt/www/${PKGNAME}"

    To:

    scp -O -oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no -C "${PKG}" "root@$BOXIP:/opt/www/${PKGNAME}"