Hi,
I use MBS Network plugin and normally it works well.
One of users utilizes OTP(One Time Password) on top of ‘password authentication’.
Strangely, when he uses OTP, the second Method#2 got an exception, but the first Method#1 using the same SSH session has no problem.
I also already asked this issue to MBS Support but I wanted to check your experience about that.
Can you catch any clue or can you give me any idea to make a workaround?
// SSH Connection
SSH_CONNECT() // While codes in this part is running, user should put OTP number.
Return MBSsession
// Method#1
dim Session as SSH2SessionMBS = MBSsession
dim channel as SSH2ChannelMBS = session.OpenSession
channel.execute some_command
........
If channel.EOF Then
Method#2
// Method#2
dim Session as SSH2SessionMBS = MBSsession
dim channel as SSH2ChannelMBS = session.OpenSession <======== NilObjectException occurs!!!
channel.execute some_command
........
If channel.EOF Then
Exit