intersystems-cacheintersystems-ensemble

COS Setting keyboard-interactive


Is there any config setting in Net.SSH.Session that will let you set keyboard-interactive I don't see any option to set this in class(%Net.SSH.Session)?

http://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?APP=1&LIBRARY=%25SYS&CLASSNAME=%25Net.SSH.Session

s ssh=##class(%Net.SSH.Session).%New()  
w "Connect to "_url_"/"_dir,!
s sc=ssh.Connect(url,port)
s sc=ssh.AuthenticateWithUsername(un,pwd)   

Solution

  • Look at Read command http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=RCOS_cread

    r "URL: ",url
    r "Dir: ",dir
    w "Connect to "_url_"/"_dir,!
    s ssh=##class(%Net.SSH.Session).%New()  
    s sc=ssh.Connect(url,port)
    s sc=ssh.AuthenticateWithUsername(un,pwd)