You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by José María Roldán Gil <jo...@telcaria.com> on 2018/01/08 07:52:55 UTC

Apache Mina SSHD Client Code Example

Hello,
I am trying to develop an example code in a java application to issue some
remote commands using SSH. I am looking for an example of a client, but I
can not find it. Do you have one?
Thank you


*José María Roldán Gil*
Research Engineer

*Telcaria Ideas SL*

Calle Barrionuevo 8, Local 1

28911 Leganés (Madrid)

Spain


Este mensaje va dirigido, de manera exclusiva, a su destinatario y puede
contener información confidencial y sujeta al secreto profesional, cuya
divulgación no está permitida por la ley. En caso de haber recibido este
mensaje por error, le rogamos que, de forma inmediata, nos lo comunique
mediante correo electrónico remitido a nuestra atención y proceda a su
eliminación, así como a la de cualquier documento adjunto al mismo.
Asimismo, le comunicamos que la distribución, copia o utilización de este
mensaje, o de cualquier documento adjunto al mismo, cualquiera que fuera
su finalidad, están prohibidas por la ley. En aras del cumplimiento de la
LOPD y el RDLOP, puede ejercer los derechos A.R.C.O. de manera gratuita
mediante email maruseda@telcaria.com o en la direccion Barrionuevo 8, Local
1, 28911 Leganés.

This message is intended exclusively to its address and may contain
confidential and subject to professional secrecy information whose
disclosure is prohibited by law. If you have received this message in
error, please, immediately, notify us via email sent to our care and to
their elimination as well as any attachments thereto. We also inform that
the distribution, copying or use of this message or any attachments
thereto, whatever their purpose, are prohibited by law. In order to comply
with the Data Protection Act, you can exercise your rights of access,
rectification, cancellation or opposition for free via email to
maruseda@telcaria.com or at the address Barrionuevo 8, Local 1, 28911
Leganés.

Re: Apache Mina SSHD Client Code Example

Posted by elijah baley <e_...@outlook.com>.
  *   The SSHClient class itself has a main method that can give some ideas how to initialize the code and use it (ditto for SftpCommand and DefaultScpClient)
  *   The https://github.com/apache/mina-sshd/  site has quite a few examples of how to setup client/server code for different purposes
  *   The various unit tests in the project have plenty of examples of how to achieve almost any possible feature


"SSH client code" is a very wide topic - dozens of features - if there is some specific task I would be glad to give more pointers as to how to achieve it

  *


________________________________
From: José María Roldán Gil <jo...@telcaria.com>
Sent: Monday, January 8, 2018 9:52 AM
To: dev@mina.apache.org
Subject: Apache Mina SSHD Client Code Example

Hello,
I am trying to develop an example code in a java application to issue some
remote commands using SSH. I am looking for an example of a client, but I
can not find it. Do you have one?
Thank you


*José María Roldán Gil*
Research Engineer

*Telcaria Ideas SL*

Calle Barrionuevo 8, Local 1

28911 Leganés (Madrid)

Spain


Este mensaje va dirigido, de manera exclusiva, a su destinatario y puede
contener información confidencial y sujeta al secreto profesional, cuya
divulgación no está permitida por la ley. En caso de haber recibido este
mensaje por error, le rogamos que, de forma inmediata, nos lo comunique
mediante correo electrónico remitido a nuestra atención y proceda a su
eliminación, así como a la de cualquier documento adjunto al mismo.
Asimismo, le comunicamos que la distribución, copia o utilización de este
mensaje, o de cualquier documento adjunto al mismo, cualquiera que fuera
su finalidad, están prohibidas por la ley. En aras del cumplimiento de la
LOPD y el RDLOP, puede ejercer los derechos A.R.C.O. de manera gratuita
mediante email maruseda@telcaria.com o en la direccion Barrionuevo 8, Local
1, 28911 Leganés.

This message is intended exclusively to its address and may contain
confidential and subject to professional secrecy information whose
disclosure is prohibited by law. If you have received this message in
error, please, immediately, notify us via email sent to our care and to
their elimination as well as any attachments thereto. We also inform that
the distribution, copying or use of this message or any attachments
thereto, whatever their purpose, are prohibited by law. In order to comply
with the Data Protection Act, you can exercise your rights of access,
rectification, cancellation or opposition for free via email to
maruseda@telcaria.com or at the address Barrionuevo 8, Local 1, 28911
Leganés.