Closed jcohenadad closed 2 years ago
It looks like maybe your ~/.ssh/config
is confused. It should be asking "git@data.neuro.polymtl.ca's password: ". That it's not means something has gone wonky. Can you compare it to https://intranet.neuro.polymtl.ca/computing-resources/neuropoly/README.html#ssh-command-line ?
Also show me ssh -v git@data.neuro.polymtl.ca
?
here's my .ssh/config:
i changed it for the ssh/config you pointed out, and now it is asking for the right thing:
git@data.neuro.polymtl.ca's password:
however, when i enter my GRAMES passwd, it still doesn't work.
The problem is there's a tension between https://github.com/neuropoly/data-management/issues/22 and https://github.com/neuropoly/computers/issues/90. gitolite
doesn't work with grames passwords and /mnt/duke
doesn't with without them.
It would be cool if we could get them plugged in together but it's actually rather difficult.... for now we just have to respect ssh keys. You can add this line to get it working again (a correction I made 6 days ago: https://github.com/neuropoly/intranet.neuro.polymtl.ca/commit/5ed0e14becc89241680212298007fa27b816a6c1#diff-886e3c8ca9aaf0589a3fb004d29a7606ff201071094f6f179d57eb5faab33e3e)
HostName data.neuro.polymtl.ca
User git
+PreferredAuthentications pubkey
Thank you @kousu, it solved it. So i understand that by changing passwd to pubkey, i won't be able to see the mounted duke on the stations anymore (because of https://github.com/neuropoly/computers/issues/90), and so i need to manually change it back to 'passwd' to fix it when i need it, is that right?
That change only applies to data
, which you never connect in to. It isn't even itself connected to duke
because there's never any need for that.
You should be able to confirm that you get a password prompt and can access duke
elsewhere by ssh -v joplin ls /mnt/duke/projects/
hum, i get a permission denied:
maybe related to https://github.com/neuropoly/data-management/issues/155?
Can I please see ~/.ssh/config
in its full current state?
The last line needs to say PreferredAuthentications password
, that should get it working again.
ah! indeed i modified the wrong line when implementing https://github.com/neuropoly/data-management/issues/154#issuecomment-983818916.
now it looks like:
so i changed the last line, but also the line about the data server:
PreferredAuthentications publickey --> PreferredAuthentications pubkey
now, i can connect to the stations again, but i still cannot get the data:
julien-macbook:~/data.neuro/spine-generic-processed $ git pull && git annex sync --no-content && git annex get .
git@data.neuro.polymtl.ca's password:
Permission denied, please try again.
git@data.neuro.polymtl.ca's password:
The config in https://intranet.neuro.polymtl.ca/computing-resources/neuropoly/README.html#ssh-command-line is working for me, under Linux.
The key log lines are
debug1: Offering public key: /home/kousu/.ssh/id_rsa RSA SHA256:GSSwEyBD36nxOSBPAWx2D8UX5K1emE6ZCiAuIKjljnU debug1: Offering public key: /home/kousu/.ssh/id_ed25519 ED25519 SHA256:gheZ5HA8sJXBBRY8+5h57/ERWSxTTey0jOxYYSm26PE
Does yours try any key files?
Is it possible you simply never inscribed your macbook onto data.neuro
?
it does try some key files:
Is it possible you simply never inscribed your macbook onto data.neuro?
i did already download several datasets on my laptop, so i'm not sure what changed since. Should i try to rename my .ssh/* files to recreate them? or edit them to remove one entry corresponding to the data server?
ah! wait! i got it working. The solution is to do:
# data servers
Match Host data
HostName %h.neuro.polymtl.ca
User git
PreferredAuthentications publickey
instead of (advised in https://github.com/neuropoly/data-management/issues/154#issuecomment-983818916):
# data servers
Match Host data
HostName %h.neuro.polymtl.ca
User git
PreferredAuthentications pubkey
the neuropoly intranet does advise the correct thing though, so we're good 😅
thank you for your help!
ah no, wait...
this works:
but i still cannot update the dataset:
julien-macbook:~/data.neuro/basel-mp2rage $ git pull && git annex sync --no-content && git annex get .
git@data.neuro.polymtl.ca's password:
Permission denied, please try again.
git@data.neuro.polymtl.ca's password:
i'll try to just erase and re-download a dataset?
EDIT: Actually, I cannot even do that (i get the permission error issue... :-( )
Have you rebooted lately by any chance?
Have you rebooted lately by any chance?
Yes, I reboot my laptop every day. Same thing happened now (I checked again), at Poly (without the VPN).
@taowa figured out the missing piece! Thank you Taowa. Please take their advice, @jcohenadad.
You would have git clone git@data.neuro.polymtl.ca:....
'd, while the test I asked you to do only tested ssh git@data
, which fell through a different if-else tree.
I've updated the config on the wiki to cover both cases.
a git-annexed repos is asking for my password, i give it, but it fails:
is there a glitch? @kousu