Hi All,
I use Apache Mina SSH client. The request that I want to send looks like this
user@host -w my_password -o SendEnv=SOME_VAR -s subsystem_name
What would be analogue using Apache Mina?
What I have tried so far
1. ChannelShell class has setEnv(key, value) method but I can't go in
subsystem
2. ChannelSubsystem class allows to go to subsystem but it has no
setEnv(key, value) method
3. Also I have tried to open ChannelShell, set env, then open
ChannelSubsystem using the same session as was used for ChannelShell, but it
seems env variable hasn't gotten to ChannelSubsystem
Any suggestions?
https://stackoverflow.com/questions/68442127/send-environment-variable-and-open-subsystem-at-the-same-time-for-ssh-session