I would like to send "su root" command via expectj (in fact it is jsch).It requests password. Is there a way to handle it in expectj ?
How to handle passwords prompts in expectj
443 views Asked by Marcin Skibiński At
1
There are 1 answers
Related Questions in JSCH
- Using Jsch for file transfer from remote to local but file getting deleted on getting input stream
- Unable to solve JSchException: Auth cancel Error
- jsch with groovy 2: No such file
- jsch JSchAlgoNegoFailException Algorithm negotiation fail
- Unable to add jsch-0.1.55.jar to existing Eclipse java project
- Running any exe with Jsch in a AWS windows server not working
- Caught an exception, leaving main loop due to End of IO Stream Read - How to catch it?
- Unable to connect ot remote DB with ssh tunnel
- jcraft jsch throws "inputstream closed" exception
- Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism at javax.crypto.JceSecurity in JavaCompiler API
- Failed to connect and initialize SSH connection in Jenkins
- SFTP Connection through OPENSSH IdentityFile in Java
- Jsch getting disconnected on trying to connect to SFTP server under AWS Transfer Family
- Connection to SFTP using Jsch throwing NullPointer
- jsch library authentication failure with rsa-sha2-512 preauth failure
Related Questions in EXPECTJ
- Java expectj execute linux command through jump box
- ExpectJ exception on expectinator.spawn
- I get a contextTypes error when I try to test a very simple component
- How to send control chars using ExpectJ in interactive mode?
- read output text on calling spawn.send()
- How to use ExpectJ in Jython?
- ExpectJ: How to leave from "interact" mode?
- expectJ - Reading InputStream from spawn.send()
- how to implement expect "interact" command using java
- How to handle passwords prompts in expectj
- How to use ExpectJ in synchronized way (waiting for answer with unknown content ) ?
- Java library to run multiple unrelated commands on a remote server via ssh
- ExpectJ for Telnet
- How to wrap rsync with interactive login using Java?
- JSCH Java applet
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)