C#C
C#2y ago
Relevant

SFTP through a proxy server

I'm using SSH.NET and since I'm unable to connect to production servers directly, I have to first SSH into an intermediary server (using a private key), which I can than use to SSH into the prod servers. It's working-ish, but I'm doing everything through shell streams and using regular expressions to filter the linux output. It's a bit of a mess. I'd really like to use SFTP to check files, but I haven't yet figured out a way to do this through another server using a private key.

I know it's a long shot, since this is a pretty specific need, but figured I'd check here to see if anyone has any ideas.
Was this page helpful?