in reply to ssh error
Test the account with an SSH client to determine if the problem is the account and server, or your code.
Neil Watson watson-wilson.ca