Use a bind address with Jsch Session
问题 I am attempting to set an address so that when I leave my server to scp a file I am not leaving as the servers hostname I am leaving as a different ip. The linux side of things is all setup. I can run the following ssh command and everything works as expected. ssh -b 1.1.1.1 testuser@sshhost My issue is now I am attemtpting to use JSch to scp the files over, but I can't figure out the correct session setup. I am using public private keys and those works correctly. Below is my current process.