Re: Exception: connection attempt failed.... (General questions)
As you have seen, you have invalid hostname or IP address. I am quite sure FTP doesn't work on it either! Maybe you misspelled it?
If NSLOOKUP fails, how can FTP work?
In any case, this is TCP/IP problem, not SFTP problem. When we resolve TCP/IP related problem, I suppose SFTP will work too.