pijul_org / pijul

#120 Cannot push changes to nest,

Opened by zyga, on June 9, 2017
Closed
zyga commented on June 9, 2017

I have a clone of pijul itself and after making some changes wanted to push them back to the nest.\r +

zyga@fyke:~/pijul$ pijul push zyga@nest.pijul.com:zyga/pijul\r                                                                                                        +
error: SSH keys: Index out of bounds in a packet\r                                                                                                                    +
```\r                                                                                                                                                                 +
\r                                                                                                                                                                    +
I was using master close to the 0.6 release, with the most recent change being AZIgfCpVyi0D1GCDVMEB7o0QGRt1kNPOF4hM-muQ3jZfgdaMEX1lzgYwUJJT3NP0Et3FZthoQML1i019khC1n7A
pmeunier commented on June 9, 2017

Thanks for reporting!\r + \r + This is a duplicate of #108, and is more about thrussh-keys.\r + But anyway, I'll love it if you could post your version of OpenSSH, generate a fake SSH key with ssh-keygen, and post it here.

zyga commented on June 9, 2017

I was using ssh from the ubuntu 16.04 package 1:7.2p2-4ubuntu2.2\r+ \r + A test SSH key:\r + \r +

-----BEGIN RSA PRIVATE KEY-----\r                                   +
MIIEowIBAAKCAQEAw1H6LfqJaii1z3LVzs6D8Xv+sAKTRGtG0HPZdiUNIH09+A9S\r  +
eC53mv81amkdPRHYErUb4CPAt69cvP58U3XljmizYYbWudSTmuX9g3rqbJs6VaOv\r  +
66Dmzm7xmNyJ59tGDlXhV07+FN95opxGiaEBqm51Brpms7kYpcn1b3iJY/iHmnsp\r  +
sck0oSHpIjSdNwr9LCVXGnGimusaJue2EDbHMDf/7okmuFOluinJm87kMmjaHvEU\r  +
7QTvm2Hj85P2PFONkTMnxJ/JvD63AcvFqAhrUIrw4kC3tLk+Cxme6LlOYANt6tKJ\r  +
uUH9xwQP8LHym7cgnkEfnt82WurEFPxNSr6J8QIDAQABAoIBAAlOt8BHJxMy+272\r  +
RvAC8VCpmvpiNQhWoFpAmwVBQL3imfhfKovlkveE39PBTI5jckt56+kjawSVy7KJ\r  +
4fzMKnM91AZ6uXLDiYEhIpKIYfFo+D+qfDCbS0RdDxA8uimdTlpSh1l0vzDZcV9p\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DWgxhUYiKRupEzjpobkZwXN4t2QtW+vzBg\r  +
hnyFx22AWvRmevqXIDGChiuiZvcM02zCayOgR4nac9eB8M5QKoUu\r              +
-----END RSA PRIVATE KEY-----\r                                     +
nikao commented on June 23, 2017

Darwin Vicuna-2.local 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64\r + -----BEGIN RSA PRIVATE KEY-----\r + MIIEpQIBAAKCAQEAw/FG8YLVoXhsUVZcWaY7iZekMxQ2TAfSVh0LTnRuzsumeLhb\r + 0fh4scIt4C4MLwpGe/u3vj290C28jLkOtysqnIpB4iBUrFNRmEz2YuvjOzkFE8Ju\r + 0l1VrTZ9APhpLZvzT2N7YmTXcLz1yWopCe4KqTHczEP4lfkothxEoACXMaxezt5o\r + wIYfagDaaH6jXJgJk1SQ5VYrROVpDjjX8/Zg01H1faFQUikYx0M8EwL1fY5B80Hd\r + 6DYSok8kUZGfkZT8HQ54DBgocjSs449CVqkVoQC1aDB+LZpMWovY15q7hFgfQmYD\r + qulbZRWDxxogS6ui/zUR2IpX7wpQMKKkBS1qdQIDAQABAoIBAQCodpcCKfS2gSzP\r + uapowY1KvP/FkskkEU18EDiaWWyzi1AzVn5LRo+udT6wEacUAoebLU5K2BaMF+aW\r + Lr1CKnDWaeA/JIDoMDJk+TaU0i5pyppc5LwXTXvOEpzi6rCzL/O++88nR4AbQ7sm\r + Uom6KdksotwtGvttJe0ktaUi058qaoFZbels5Fwk5bM5GHDdV6De8uQjSfYV813P\r + tM/6A5rRVBjC5uY0ocBHxPXkqAdHfJuVk0uApjLrbm6k0M2dg1X5oyhDOf7ZIzAg\r + QGPgvtsVZkQlyrD1OoCMPwzgULPXTe8SktaP9EGvKdMf5kQOqUstqfyx+E4OZa0A\r + T82weLjBAoGBAOUChhaLQShL3Vsml/Nuhhw5LsxU7Li34QWM6P5AH0HMtsSncH8X\r + ULYcUKGbCmmMkVb7GtsrHa4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rF7O3mjAhh9qANpofqNcmAmTVJDlVitE5WkOONfz9mDTUfV9oVBSKRjHQzwTAvV9jkHzQd3oNhKiTyRRkZ+RlPwdDngMGChyNKzjj0JWqRWhALVoMH4tmkxai9jXmruEWB9CZgOq6VtlFYPHGiBLq6L/NRHYilfvClAwoqQFLWp1 nschaban@Vicuna-2.local\r+ \r + \r + \r +

pmeunier commented on July 2, 2017

Just pushed patch to /pijul_org/thrussh to fix this. This is not yet in the released pijul, but cargo update, followed by cargo install on your local copy of Pijul should install the correct thing.\r+ \r + Thanks for reporting and providing examples.