Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use SCP for locations with spaces in windows #57

Open
saumy4all opened this issue Mar 30, 2022 · 0 comments
Open

Unable to use SCP for locations with spaces in windows #57

saumy4all opened this issue Mar 30, 2022 · 0 comments

Comments

@saumy4all
Copy link

saumy4all commented Mar 30, 2022

connection=Net::SSH.start('10.102.1.1', "Administrator", password: "Password", timeout: 30)
connection.scp.download!('C:/Test Folder/Package Solutions/general.log','C:/RemoteLogs')

Traceback (most recent call last):
16: from (irb):8:in rescue in irb_binding' 15: from C:/Ruby26/lib/ruby/gems/2.6.0/gems/net-scp-3.0.0/lib/net/scp.rb:321:in download!'
14: from C:/Ruby26/lib/ruby/gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/channel.rb:272:in wait' 13: from C:/Ruby26/lib/ruby/gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:180:in loop'
12: from C:/Ruby26/lib/ruby/gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:180:in loop' 11: from C:/Ruby26/lib/ruby/gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:180:in block in loop'
10: from C:/Ruby26/lib/ruby/gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:227:in process' 9: from C:/Ruby26/lib/ruby/gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/event_loop.rb:28:in process'
8: from C:/Ruby26/lib/ruby/gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/event_loop.rb:100:in ev_preprocess' 7: from C:/Ruby26/lib/ruby/gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/event_loop.rb:100:in each'
6: from C:/Ruby26/lib/ruby/gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:248:in ev_preprocess' 5: from C:/Ruby26/lib/ruby/gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:548:in dispatch_incoming_packets'
4: from C:/Ruby26/lib/ruby/gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:685:in channel_close' 3: from C:/Ruby26/lib/ruby/gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:572:in channel_closed'
2: from C:/Ruby26/lib/ruby/gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/channel.rb:611:in do_close' 1: from C:/Ruby26/lib/ruby/gems/2.6.0/gems/net-scp-3.0.0/lib/net/scp.rb:365:in block (3 levels) in start_command'
Net::SCP::Error (SCP did not finish successfully (1): )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant