Jsch Session Configuration

I have the following as shown below in my ssh configuration file. I will have to configure the same configuration for my Jsch session. Jsch supports configuration configuration as shown below.

session.setConfig(String name, String value);
session.setConfig(HashTable config);
session.setConfig(Properties config);

But none of them supports hierarchical nested settings (for example, settings are applicable only for a range of hosts)

Host git.*
  User git
  ProxyCommand ssh -q github.example.com nc git %p

Open alternative offers, such as creating SSH tunnels or others.

+4
source share
1 answer

, , Jsch java- ssh. Jsch - SSH. , , .

, , Jsch. , ssh. ssh, , , .

, , , , .

, Jsch SSH. , .

+9

All Articles