How can I configure JSch client to communicate using network interface other than default one?
相关问题
- IPAddress.[Try]Parse parses 192.168 to 192.0.0.168
- JavaScript File Transfer SSH
- What would prevent code running in a Docker contai
- Check whether the path exists on server or not in
- How to run tcp and udp on a single port at same ti
相关文章
- List可以存储接口类型的数据吗?
- Check if directory exists on remote machine with s
- RMI Threads prevent JVM from exiting after main()
- Git Clone Fails: Server Certificate Verification F
- fsc.exe is very slow because it tries to access cr
- Test if File/Dir exists over SSH/Sudo in Python/Ba
- Can't access AWS CodeCommit with SSH
- When to use Interfaces in PHP
You can implement the SocketFactory interface to create a custom socket with a specified source interface, and then use
session.setSocketFactory(...)
to plug it into your JSch session.I do not think that it is possible. I have the same requirement and checked the source code provided along with JSch. The plain Socket is created without a local address or port.