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

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
NGit/Nsch Generating SSH Keypair (c# Jgit)
Extract userInfo from JSCH stream
Running a Shell Script using java ( process Builder ) with a specific unix user
Java jsch and resuming file upload after interruption?
How to pass a variable through channel in Jsch?
How to handle passwords prompts in expectj

Categories

HOME
log4j
openlayers
clips
testng
keycloak
azure-data-factory
ngrx
comparison
layout
iterator
include
grep
octobercms
gis
cmd
tizen-web-app
python-unittest
spring-kafka
numeral.js
google-cloud-spanner
moonmail
visual-studio-cordova
circuit
dynamics-crm-online
caml
aurigma
propel
samoa
cloudhub
ehcache
php-openssl
hammerspoon
smb
su
underflow
fifo
minitab
replaceall
msys2
react-chartjs
google-cloud-endpoints-v2
winrt-xaml-toolkit
grails-3.1
accelerate-framework
gammu
amazon-kinesis-kpl
force-layout
overriding
scaffold
gesture
libvpx
graphenedb
hp-ux
powershell-dsc
websphere-mq-fte
xml-documentation
chain-builder
alphabet
integrity
gabor-filter
drupal-6
kbuild
crypt
pdfclown
epson
synchronous
background-service
messenger
static-ip-address
android-textview
asp.net-4.5
google-web-starter-kit
essence
qgraphicsview
bgp
nessus
historian
hsv
srand
django-unittest
embedded-code
mono-embedding
apache-commons-fileupload
unity3d-gui
nsmutabledictionary
rake-task
clicktag
pick
aapt
contenttype
elliptic-curve
system.net.webexception
oracle-warehouse-builder
stxxl
gnu-smalltalk
excel-2003
jplaton
back-stack
http-unit
browser-detection
sublist
coderush
javaspaces
dbproviderfactories
netbeans-6.9
amazon-appstore
window-management
hirefire
coercion
winbugs14
telerik-scheduler
coda-slider
suppress
mozilla-prism
nhibernate.search
preference
meego
web-architecture
iweb
gacutil
dbisam
signal-handling
document-conversion

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App