Git Product home page Git Product logo

Comments (4)

MBronars avatar MBronars commented on August 25, 2024 1

Searched around on the internet a bit and found the solution, anyone else facing this issue try the following and hopefully it works like it did for me:

Cause: new openssh libs used to generate keys by default save private keys in a different file format that U-Net can't handle. New file format starts with "-----BEGIN OPENSSH PRIVATE KEY-----", while the old one has a different header "-----BEGIN RSA PRIVATE KEY-----"
Solution: (copy) convert your private key file using:
ssh-keygen -p -f file -m pem -P passphrase -N passphrase
(if the key is not encrypted with a passphrase, use "" instead of passphrase)

It seems like you may face these issues if you are using a newer Mac as your frontend computer

from unet-segmentation.

lucaslovercio avatar lucaslovercio commented on August 25, 2024

Hi! I am having the same issue, in Ubuntu.
the parameter file in your script is the old id_rsa location?
Thanks!

from unet-segmentation.

lucaslovercio avatar lucaslovercio commented on August 25, 2024

Maybe more detail can help to understand our issue, and maybe someone can help us.
We have this line in a ImageJ plugin, inside a loop of a folder:

call('de.unifreiburg.unet.SegmentationJob.processHyperStack', 'modelFilename=' + modeldef + ',Memory (MB):=4000,weightsFilename=' + caffemodel + ',gpuId=GPU 0,useRemoteHost=true,hostname=localhost,port=22,username=lucas,RSAKeyfile=/home/lucas/.ssh/id_rsa,processFolder=process-folder/,average=none,keepOriginal=false,outputScores=false,outputSoftmaxScores=false');

And it ask for the password every time it enters in the loop. It seems it is not recognizing the id_rsa file. After I write the password it works, until the next iteration, asking for it again.

ImageJ_ssh_password

This Plugin acutally owrk in other computer. In mine, I create the id_rsa with
ssh-keygen -t rsa
And when it ask for the passphrase, I put the password for my local server (Is that correct, or no password? because it actually work in both cases).

I tried after that the script in this thread, but nothing changed.

Installed software details:
ssh -V returns OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017

Thoughts?

from unet-segmentation.

ThorstenFalk avatar ThorstenFalk commented on August 25, 2024

You can login to the server using the RSA key from console? Try with a corresponding ~/.ssh/config section for your server specifying the key to use. The RSA key format is of course also relevant as MBronars described. Basically jsch supports only a limited set of authentication methods with a subset of available formats.

from unet-segmentation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.