A null key is not allowed in a hash literal.

Advertisement

Tolly
Guest

A null key is not allowed in a hash literal.

I am automating my directories sync but when I try to connect using .Net assembly via powershell to the external SFTP site I get this: A null key is not allowed in a hash literal.
Is this because I am using IP adddress in here: $sessionOptions.HostName = "x.x.x.x"
I am using Version 5.7.6 (biild 5874)

Thank you,
T.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,542
Location:
Prague, Czechia

Re: A null key is not allowed in a hash literal.

I assume you did not initialize the $sessionOptions variable.

Show us your complete script.

Reply with quote

Advertisement

You can post new topics in this forum