0 votes
by (230 points)

_FtpClient.Connect(hostname); <- exception raised here
if (privateKey != null) {
    _FtpClient.Login(username, privateKey);
} else {
    _FtpClient.Login(username, password);
}

Applies to: Rebex SFTP
by (230 points)
I should have also mentioned that the SftpException that does get raised takes around 30 seconds to occur.

1 Answer

+1 vote
by (150k points)

_FtpClient.Connect("nsmediadocs.sftp.upload.akamai.com");

by (230 points)
Hi Lukas

Thanks for the response, adding the .sftp within the hosthname did resolve to an IP as well, however it gives back the same exception alas.
by (150k points)
Does the Connect method succeed if you use "nsmediadocs" for server prefix, or does that fail as well?
by (230 points)
No - same response.  I timed it this time, it's actually ~60 seconds until the exception occurs.
I may as well mention, this host is actually: tvsnvod.upload.akamai.com
by (150k points)
I'm afraid that the most likely explanation is some network issue at your side. It looks like some firewall or router is blocking outgoing connections.
I'm able to establish connection to both tvsnvod.upload.akamai.com:22 and nsmediadocs.sftp.upload.akamai.com:22 without any problem. Our sshcheck.com online tool can connect as well - see https://sshcheck.com/server/tvsnvod.upload.akamai.com/22 for the results.

Are you able to connect to the site using Windows Telnet? Simply executing "telnet tvsnvod.upload.akamai.com 22" from a command prompt should get you connected and display the server's software identification string: "SSH-2.0-Server-VIII-hpn14v11"
by (230 points)
Damn - you were right, apparently the Networking team have locked down external access recently... which was the issue.
Thanks for putting me on the right track.
by (150k points)
Thanks for letting us know!
...