Re: SSH application in Java



mateusz.zajakala@xxxxxxxxx wrote:
I need to write small application in Java which will connect to
computer with Linux OS and execute "reboot" command there (the
direction is to automate this process and do it on lot of pc's "at
once" by one *kick*). All using SSH. I tried sshtools (get tons of
errors, especially becouse no logfactory), now I'm focused on jsch but
have problems too. Can you (group) please tell me if I'm going right
direction, or perhaps my task could be done way easier? I'll be
thankfull for any ideas and tips.

If it doesn't have to be java, why not simply setup a public/private key
pair, add 'username ALL = NOPASSWD: /sbin/reboot' to /etc/sudoers, so
you can use

ssh username@host sudo reboot

from the windows machine?
.



Relevant Pages

  • SSH application in Java
    ... computer with Linux OS and execute "reboot" command there (the ... direction is to automate this process and do it on lot of pc's "at ...
    (comp.lang.java.programmer)
  • SSH application in Java
    ... computer with Linux OS and execute "reboot" command there (the ... direction is to automate this process and do it on lot of pc's "at ...
    (comp.security.ssh)
  • Re: SSH application in Java
    ... computer with Linux OS and execute "reboot" command there (the ... All using SSH. ... It's an optional command, so you'll probably need to hunt ...
    (comp.lang.java.programmer)
  • Does TCPIP_ECO V5.3-182 break SSH EAK?
    ... SSH was no longer recognized as a legitmate command. ... I reinstalled SSH, ... Still no joy until another reboot, when the SSH command was once again ...
    (comp.os.vms)
  • Re: EWF/DUA help needed
    ... > Your script does not reboot the device because it likely fails on the EXECUTE command. ... I have changed the script file, ... it may not be good implementation of your script for the purpose of changing running app with EWF on. ... > With EWF command you just commit a registry change to move/replace the JP.exe file on next reboot. ...
    (microsoft.public.windowsxp.embedded)