Ticket #40914

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

오픈 날짜: 2020-11-03 21:56 마지막 업데이트: 2020-11-05 17:32

Reporter:
(del#110367)
소유자:
(None)
Status:
Closed
Component:
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
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 History (3/9 Histories)

2020-11-03 21:56 Updated by: (del#110367)
  • New Ticket "Permission to connect ssh (with rsync and sftp) denied" created
2020-11-03 21:57 Updated by: (del#110367)
  • Summary Updated
2020-11-04 11:52 Updated by: ishikawa
댓글 올리기

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 Updated by: ishikawa
  • Priority Update from 6 to 5 - Medium
  • Severity Update from 7 to 5 - Medium
2020-11-04 19:15 Updated by: (del#110367)
댓글 올리기

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

2020-11-05 17:27 Updated by: ishikawa
댓글 올리기

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 Updated by: ishikawa)
2020-11-05 17:32 Updated by: (del#110367)
댓글 올리기

Thank you very much, that worked.

2020-11-05 17:32 Updated by: (del#110367)
  • Status Update from Open to Closed

Attachment File List

Edit

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