access denied when IOhandler connected but not otherwise?
Posted: Thu 05 Nov 2020 12:58
I am experimenting with a standard TMyConnection, TMyQuery, TMyScIOHandler, TScSSHClient and TSCfileStorage setup, all connected as they should be with TScSSHClient authentication set to atPassword and the correct server credentials set. I assigned a TScSSHClient.HostKeyName and accepted the offer from TSCFilestorage to download a server key.
Whether or not I have TMyConnection.IOHandler property pointing at the TScIOHandler Object, If I toggle the TScSSH client.connected property at design time it allows the connection so the server so the SSH side of things would seem to be OK.
If I delete the TMyConnection.IOHander value, then the TMyConnection and the TMyquery work OK at design time, so the database credentials are set OK
However, when I set the TMyConnection.IOHandler property to be the TScIOHandler Object and then try to open the TMyQuery I get a 'Access denied for <username>@servername (using password :YES)' error.
Strangely, on the same Delphi form I have I followed the same process for a different account and database on the same server and that works OK and gives me a SSH connection to that database.
What could cause the TScSSHclient and TMyConnection to work independently but not when connected together to make a SSH connection?
Whether or not I have TMyConnection.IOHandler property pointing at the TScIOHandler Object, If I toggle the TScSSH client.connected property at design time it allows the connection so the server so the SSH side of things would seem to be OK.
If I delete the TMyConnection.IOHander value, then the TMyConnection and the TMyquery work OK at design time, so the database credentials are set OK
However, when I set the TMyConnection.IOHandler property to be the TScIOHandler Object and then try to open the TMyQuery I get a 'Access denied for <username>@servername (using password :YES)' error.
Strangely, on the same Delphi form I have I followed the same process for a different account and database on the same server and that works OK and gives me a SSH connection to that database.
What could cause the TScSSHclient and TMyConnection to work independently but not when connected together to make a SSH connection?