简体   繁体   中英

How can I connect to a unix box remotly and startup/shutdown a server?

我对此有些陌生,但是即使有人可以告诉我如何使用Java远程连接到Unix盒,我想我也可以做得到。

如果ssh连接适合您,请查看JSch

Check this out:

http://javassh.org/space/start

It's under GPL license.

There are a number of Java SSH clients you could use:

I assume you want to open a session on ssh to a UNIX machine. In that case, you may want to have a look at JSch

Why do you need to use Java? Most likely you can just ssh using gitbash, putty, a terminal. It depends on your environment.

However if you need to do this from within Java take a look at this .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM