Ticket #40914

Permission to connect over ssh (with rsync and sftp) denied

Eröffnet am: 2020-11-03 21:56 Letztes Update: 2020-11-05 17:32

Auswertung:
(del#110367)
Verantwortlicher:
(Keine)
Status:
Geschlossen
Komponente:
Meilenstein:
(Keine)
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Keine
Datei:
1
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Details

When trying to connect to my project's directory (/storage/groups/a/an/anarchy) both sftp and rsync are unable to connect due to pubkey issues. I have added two SSH keys to OSDN (one using GPG's SSH option and the other a normal SSH key generated with ssh-keygen). Since using either of them didn't work I added the following entry to my ~/.ssh/config:

Host storage.osdn.net

IdentityFile ~/.ssh/osdn.pub

Just for reference, these are the commands I tried to run:

sftp erazemk@storage.osdn.net:/storage/groups/a/an/anarchy and rsync .anarchy-1.3.0-x86_64.iso.sha512sum erazemk@storage.osdn.net:/storage/groups/a/an/anarchy/.

My local public key (~/.ssh/osdn.pub) matches the 2nd key on my account at https://osdn.net/users/erazemk/openssh.pubkeys and the first one matches my GPG SSH key, so I have no idea why this doesn't work.

Thank you for your help.

Ticket-Verlauf (3/9 Historien)

2020-11-03 21:56 Aktualisiert von: (del#110367)
  • New Ticket "Permission to connect ssh (with rsync and sftp) denied" created
2020-11-03 21:57 Aktualisiert von: (del#110367)
  • Summary Updated
2020-11-04 11:52 Aktualisiert von: ishikawa
Kommentar

Please run sftp with -v option and send us the debug output of it (paste it to the comment of this ticket or attache the log file)

sftp -v erazemk@storage.osdn.net:/storage/groups/a/an/anarchy
2020-11-04 11:52 Aktualisiert von: ishikawa
  • Priorität Update from 6 to 5 - Mittel
  • Schweregrad Update from 7 to 5 - Mittel
2020-11-04 19:15 Aktualisiert von: (del#110367)
Kommentar

Thanks for the reply and sorry, didn't know what severity to add.

2020-11-05 17:27 Aktualisiert von: ishikawa
Kommentar

If you set PubkeyAcceptedKeyTypes explicitly in .ssh/config (or /etc/ssh/ssh_config) and not include ssh-rsa in it, please add ssh-rsa. Currenlty it is needed to connect older (7.x or older) ssh server.

Please add end of the ~/.ssh/config

PubkeyAcceptedKeyTypes=+ssh-rsa

Or If you do not want to add it, please use non RSA key such that ed25519 or ecdsa.

(Edited, 2020-11-05 17:27 Aktualisiert von: ishikawa)
2020-11-05 17:32 Aktualisiert von: (del#110367)
Kommentar

Thank you very much, that worked.

2020-11-05 17:32 Aktualisiert von: (del#110367)
  • Status Update from Offen to Geschlossen

Dateianhangliste

Bearbeiten

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Anmelden