It was error 530 all the time.
Code is the same, but text has changed from "530 User cannot log in." to "530 User cannot log in, home directory inaccessible. "
It was error 530 all the time.
Add-Type -Path "WinSCPnet.dll"
$sessionOptions = New-Object WinSCP.SessionOptions
$sessionOptions.Protocol = [WinSCP.Protocol]::Ftp
$sessionOptions.HostName = "ftp.com"
$sessionOptions.PortNumber = "990"
$sessionOptions.FtpSecure = "1"
$sessionOptions.SslHostCertificateFingerprint = "xxx"
$sessionOptions.UserName = "user"
$sessionOptions.Password = "pass"
$session = New-Object WinSCP.Session
I tried with password without any special characters.
But error says straight:
530 User cannot log in, home directory inaccessible.
It's not user/password. It's remote directory which this script force to use 'home' instead any provided in $remotePath
$remotePath
.
Could you send me .dll to 5.6.3 version?
You've sent me .dll to 5.5.6.0 version
$session.remotePath
.
Maybe there's a problem that username is ftp.something.com|USER ?
USER
command.