Closed quantson closed 2 years ago
Hey ! We have the same problem on our side with our application, how could we help you to fix this ?
@Thornolf, see the thread on the net-ssh issue (https://github.com/net-ssh/net-ssh/issues/847), you can fix the issue by forcing openssl < 3.0 in your gemfile
Thank you so much !
I have the same issue on a Centos 6 and if I bypass host key verification with : verify_host_key: :never, i have :
///git/net-ssh/lib/net/ssh/transport/packet_stream.rb:239:in `poll_next_packet': padding error, need 3504390562 block 16 (Net::SSH::Exception)
from ///git/net-ssh/lib/net/ssh/transport/packet_stream.rb:103:in `block in next_packet'
from ///git/net-ssh/lib/net/ssh/transport/packet_stream.rb:102:in `loop'
from ///git/net-ssh/lib/net/ssh/transport/packet_stream.rb:102:in `next_packet'
from ///git/net-ssh/lib/net/ssh/transport/session.rb:193:in `block in poll_message'
from ///git/net-ssh/lib/net/ssh/transport/session.rb:190:in `loop'
from ///git/net-ssh/lib/net/ssh/transport/session.rb:190:in `poll_message'
from ///git/net-ssh/lib/net/ssh/transport/session.rb:175:in `next_message'
from ///git/net-ssh/lib/net/ssh/authentication/session.rb:102:in `block in next_message'
from ///git/net-ssh/lib/net/ssh/authentication/session.rb:101:in `loop'
from ///git/net-ssh/lib/net/ssh/authentication/session.rb:101:in `next_message'
from ///git/net-ssh/lib/net/ssh/authentication/session.rb:130:in `expect_message'
from ///git/net-ssh/lib/net/ssh/authentication/session.rb:61:in `authenticate'
from ///git/net-ssh/lib/net/ssh.rb:254:in `start'
PR https://github.com/net-ssh/net-ssh/pull/857 solve this issue.
https://github.com/net-ssh/net-ssh/pull/864 solve this issue
Thank you @fwininger, closing this :)
Hello,
We're using the net-sftp gem to connect to various SFTP servers hosted by our customers. We recently upgraded to ruby 3.1 from 3.0.2 and are now receiving the below exception on a small sample of our outgoing connections (3 out of approximatively 20 different servers).
I unfortunately don't know much about how those distant servers are set up. I've tried to connect using the
append_all_supported_algorithms: true
to ssh options but it didn't change anything.Prior to update ruby version: 3.0.2 net-ssh version: 6.1.0 net-sftp version: 3.0.0
After update ruby version: 3.1.0 net-ssh version: 6.1.0 net-sftp version: 3.0.0
edit: adding verbose debug output