jsch


Changing password using Jsch and ChannelExec


I want to change a password on a remote UNIX server by a java program without user interaction. I had no problem doing this with JSch in my test environment using ChannelShell - this works perfectly. But the production target system doesn't allow to run the shell, so I have to do this using ChannelExec providing the passwords (old and new) by streams to the terminal.
Does anyone have a sample code for changing the password without user interaction using ChannelExec?
By the way, the target system has a special command for changing the password, not the usual passwd command - so I suppose, that I won't have the usual options (like --stdin) for this command, too.
Thanks, Robert

Related Links

JSch for pbrun not working
JSCH read from input stream hangs from time to time
Hundreds of Apache SSHD clients leave hundreds of OpenSSH daemon processes running
Jsch - ssh connection through ssh tunnel
Changing password using Jsch and ChannelExec
how to delete local file using jsch after file is sent to remote SFTP server directory
com.jcraft.jsch.JSchException: Auth fail error
Creating a new file in SSH enabled system using JSCH
How to interact with the script after its execution using Jsch
java jsch -executing multiple unix commands
How to get one stream from error stream and input stream when calling a script using JSCH
SFTP using jschexception verify false sometimes fails
how to increase the jsch buffer size?
The cipher 'aes256-cbc' is required, but it is not available
How to pause/resume procedure while/after upload file by ChannelSftp
jsch + running multiple command in shell after SU and then close channal

Categories

HOME
winforms
mediawiki
heroku
tinymce
angular-material
relative-path
include
hp-exstream
hashmap
setup-deployment
sharepoint-designer
constraint-programming
autotools
floating-action-button
postgres-xl
size
fallback
try-catch
saxon
footer
apache-metamodel
oracle-coherence
text-rendering
shared-hosting
visual-composer
jprofiler
emulator
plunker
amazonsellercentral
web-sql
zurb-foundation-6
captiveportal
chromebook
windows-error-reporting
web-api-testing
ejabberd-module
compatibility
libuv
tinymce-4
binary-data
phonegap
hybridauth
main
simplexml
lto
dynamics-crm-2013
objectlistview
awt
powershell-dsc
eclipse-gef
sas-jmp
skeleton-css-boilerplate
python-webbrowser
domain-model
flow-control
account-kit
messenger
root-framework
grails-tomcat-plugin
httplistener
rotativa
phishing
django-debug-toolbar
xml-attribute
fuzzy-search
goose
qtableview
collapse
citrus-pay
coveralls
tableau-online
gadt
cdt
mdt
neolane
funcunit
p4java
jubula
system.net.webexception
poller
mechanize-ruby
oam
geos
web2py-modules
listings
gwt-rpc
limejs
robotics-studio
sublist
gdata-api
datawindow
osql
spyware
zpt
subgurim-maps
servicehost
sql-server-profiler
iweb
xetex
pascal-fc
multiple-languages
windows-live-messenger

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App