Topic "A null key is not allowed in a hash literal."

Author Message


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,
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
I assume you did not initialize the $sessionOptions variable.

Show us your complete script.

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License